<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/mysnprintf.c, branch 2.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/mysnprintf.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/mysnprintf.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-12-28T04:27:46Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create branch</title>
<updated>2001-12-28T04:27:46Z</updated>
<author>
<name>cvs2svn</name>
<email>tools@python.org</email>
</author>
<published>2001-12-28T04:27:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=22768184cbbaa4bd6083c51c28183be7f4fc3d69'/>
<id>urn:sha1:22768184cbbaa4bd6083c51c28183be7f4fc3d69</id>
<content type='text'>
'release22-maint'.
</content>
</entry>
<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>When the number of bytes written to the malloc'ed buffer is larger</title>
<updated>2001-12-01T16:00:10Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-01T16:00:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9'/>
<id>urn:sha1:64be0b4aa5094d3a1a85eba20fcc9b7fca3289a9</id>
<content type='text'>
than the argument string size, copy as many bytes as will fit
(including a terminating '\0'), rather than not copying anything.
This to make it satisfy the C99 spec.
</content>
</entry>
<entry>
<title>Add mysnprintf.c to Windows build, + squash compiler wngs in mysnprintf.c.</title>
<updated>2001-07-31T22:10:29Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-31T22:10:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=aa6111fc93c1cb5950e45ee3c8354e1e517b9524'/>
<id>urn:sha1:aa6111fc93c1cb5950e45ee3c8354e1e517b9524</id>
<content type='text'>
</content>
</entry>
<entry>
<title>This patch turns the Python API mismatch notice into a standard</title>
<updated>2001-07-31T13:24:44Z</updated>
<author>
<name>Marc-André Lemburg</name>
<email>mal@egenix.com</email>
</author>
<published>2001-07-31T13:24:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e5006ebc9d0618bc500afebfa1e21b6aae2a22e3'/>
<id>urn:sha1:e5006ebc9d0618bc500afebfa1e21b6aae2a22e3</id>
<content type='text'>
Python warning which can be catched by means of the Python warning
framework.

It also adds two new APIs which hopefully make it easier for Python
to switch to buffer overflow safe [v]snprintf() APIs for error
reporting et al. The two new APIs are PyOS_snprintf() and
PyOS_vsnprintf() and work just like the standard ones in many
C libs. On platforms which have snprintf(), the native APIs are used,
on all other an emulation with snprintf() tries to do its best.
</content>
</entry>
</feed>
