<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/getargs.c, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/getargs.c?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/getargs.c?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-12-03T00:43:33Z</updated>
<entry>
<title>mysnprintf.c:  Massive rewrite of PyOS_snprintf and PyOS_vsnprintf, to</title>
<updated>2001-12-03T00:43:33Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-12-03T00:43:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=faad5ad59005d16080aa79b593fede25c6a7457c'/>
<id>urn:sha1:faad5ad59005d16080aa79b593fede25c6a7457c</id>
<content type='text'>
use wrappers on all platforms, to make this as consistent as possible x-
platform (in particular, make sure there's at least one \0 byte in
the output buffer).  Also document more of the truth about what these do.

getargs.c, seterror():  Three computations of remaining buffer size were
backwards, thus telling PyOS_snprintf the buffer is larger than it
actually is.  This matters a lot now that PyOS_snprintf ensures there's a
trailing \0 byte (because it didn't get the truth about the buffer size,
it was storing \0 beyond the true end of the buffer).

sysmodule.c, mywrite():  Simplify, now that PyOS_vsnprintf guarantees to
produce a \0 byte.
</content>
</entry>
<entry>
<title>SF bug 486278 SystemError: Python/getargs.c:1086: bad.</title>
<updated>2001-11-29T03:26:37Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-11-29T03:26:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cffed4bc2162e453a8458d3014e23fa07b627aff'/>
<id>urn:sha1:cffed4bc2162e453a8458d3014e23fa07b627aff</id>
<content type='text'>
vgetargskeywords():  Now that this routine is checking for bad input
(rather than dump core in some cases), some bad calls are raising errors
that previously "worked".  This patch makes the error strings more
revealing, and changes the exceptions from SystemError to RuntimeError
(under the theory that SystemError is more of a "can't happen!" assert-
like thing, and so inappropriate for bad arguments to a public C API
function).
</content>
</entry>
<entry>
<title>Two screwups fixed for sizeof(char *) instead of sizeof(char []).</title>
<updated>2001-11-28T22:14:37Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T22:14:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b048b26db00b57fe5f23b4b81eae90a06c98fb0b'/>
<id>urn:sha1:b048b26db00b57fe5f23b4b81eae90a06c98fb0b</id>
<content type='text'>
Also change all the helper functions to pass along the size of the
msgbuf and use PyOS_snprintf() when writing into the buffer.
</content>
</entry>
<entry>
<title>Use PyOS_snprintf() at some cost even though it was correct before.</title>
<updated>2001-11-28T21:46:59Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T21:46:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f16e05e7ecdba12180a0e64de22190b617a639bb'/>
<id>urn:sha1:f16e05e7ecdba12180a0e64de22190b617a639bb</id>
<content type='text'>
seterror() uses a char array and a pointer to the current position in
that array.  Use snprintf() and compute the amount of space left in
the buffer based on the current pointer position.
</content>
</entry>
<entry>
<title>Use PyOS_snprintf when possible.</title>
<updated>2001-11-28T20:29:22Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T20:29:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=23ae9874013d228e1574f12274362c46a227f347'/>
<id>urn:sha1:23ae9874013d228e1574f12274362c46a227f347</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixes for possible buffer overflows in sprintf() usages.</title>
<updated>2001-11-28T11:47:00Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-11-28T11:47:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d4c0a9c59b399bfa0d36030663f78aa18a68e051'/>
<id>urn:sha1:d4c0a9c59b399bfa0d36030663f78aa18a68e051</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vgetargskeywords()</title>
<updated>2001-10-27T07:25:06Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-27T07:25:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2f011201ae374da4544b93aba09d0279c139c18'/>
<id>urn:sha1:c2f011201ae374da4544b93aba09d0279c139c18</id>
<content type='text'>
+ Squash another potential buffer overrun.
+ Simplify the keyword-arg loop by decrementing the count of keywords
  remaining instead of incrementing Yet Another Variable; also break
  out early if the number of keyword args remaining hits 0.

Since I hit the function's closing curly brace with this patch, that's
enough of this for now &lt;wink&gt;.
</content>
</entry>
<entry>
<title>vgetargskeywords:  Now that it's clear that nkwlist must equal max, and</title>
<updated>2001-10-27T07:00:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-27T07:00:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b639d49798ed25d6a79175696a0786da442a6fcc'/>
<id>urn:sha1:b639d49798ed25d6a79175696a0786da442a6fcc</id>
<content type='text'>
we're ensuring that's true during the format parse, get rid of nkwlist.
</content>
</entry>
<entry>
<title>vgetargskeywords:  Prevent another potential sprintf buffer overrun.</title>
<updated>2001-10-27T06:53:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-27T06:53:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dc5eff9170fffae08454d56e5a71f9b6067fd79c'/>
<id>urn:sha1:dc5eff9170fffae08454d56e5a71f9b6067fd79c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vgetargskeywords:  Verify kwlist has the required length while parsing</title>
<updated>2001-10-27T06:42:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-27T06:42:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=62d48e1735db7acdbacbe7eec0131dd79f529a18'/>
<id>urn:sha1:62d48e1735db7acdbacbe7eec0131dd79f529a18</id>
<content type='text'>
the format, instead of waiting until after we can overindex it by
mistake.
</content>
</entry>
</feed>
