<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/zlibmodule.c, branch v2.7a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/zlibmodule.c?h=v2.7a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/zlibmodule.c?h=v2.7a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2008-06-09T04:58:54Z</updated>
<entry>
<title>This reverts r63675 based on the discussion in this thread:</title>
<updated>2008-06-09T04:58:54Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-06-09T04:58:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dd96db63f689e2f0d8ae5a1436b3b3395eec7de5'/>
<id>urn:sha1:dd96db63f689e2f0d8ae5a1436b3b3395eec7de5</id>
<content type='text'>
 http://mail.python.org/pipermail/python-dev/2008-June/079988.html

Python 2.6 should stick with PyString_* in its codebase.  The PyBytes_* names
in the spirit of 3.0 are available via a #define only.  See the email thread.
</content>
</entry>
<entry>
<title>Renamed PyString to PyBytes</title>
<updated>2008-05-26T12:51:38Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2008-05-26T12:51:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=593daf545bd9b7e7bcb27b498ecc6f36db9ae395'/>
<id>urn:sha1:593daf545bd9b7e7bcb27b498ecc6f36db9ae395</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.</title>
<updated>2008-04-09T00:25:17Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-04-09T00:25:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=79e42a0e0817b9c9fc23b333524427662b33986d'/>
<id>urn:sha1:79e42a0e0817b9c9fc23b333524427662b33986d</id>
<content type='text'>
It tried to allocate negative or zero memory.  That fails.
</content>
</entry>
<entry>
<title>Use a 32-bit unsigned int here, a long is not needed.</title>
<updated>2008-03-25T07:31:28Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-03-25T07:31:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1fa588e14f8c091f5da6c23820b1ea6cc0d8ddff'/>
<id>urn:sha1:1fa588e14f8c091f5da6c23820b1ea6cc0d8ddff</id>
<content type='text'>
</content>
</entry>
<entry>
<title>replace calls to get the initial values with the raw constants.</title>
<updated>2008-03-23T22:14:38Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-03-23T22:14:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=be446b4ab7f3040d9e0854119d2d44cd39a48d9e'/>
<id>urn:sha1:be446b4ab7f3040d9e0854119d2d44cd39a48d9e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert r61779 - It undid correct code and caused test_zlib to fail on all</title>
<updated>2008-03-23T20:31:23Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-03-23T20:31:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=73f57b0c058debbcb05e9fefd33897ddaaae5b6f'/>
<id>urn:sha1:73f57b0c058debbcb05e9fefd33897ddaaae5b6f</id>
<content type='text'>
platforms with a 64-bit long.

The Alpha/Tru64 test problem is a problem in either tarfile or test_tarfile,
not zlib.

crc32 and adler32 return 32-bit values.  by using a long thats larger than
32-bits in these functions they were prevented from wrapping around to their
signed 32-bit value that we want them to return in python 2.x.
</content>
</entry>
<entry>
<title>Fix test_tarfile failures on Alpha (Tru64).  The problem was caused in r61449</title>
<updated>2008-03-23T05:08:37Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2008-03-23T05:08:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=acbd6420e35754d31039e53333171f3ee50fcdc6'/>
<id>urn:sha1:acbd6420e35754d31039e53333171f3ee50fcdc6</id>
<content type='text'>
which made the return value signed.  On the Alpha that also lost data
since sizeof(int) != sizeof(long) and apparently adler32/crc32 return
64 bits of data.  This change keeps the signedness and continues to store the
data in a long rather than an int as was the case before r61449.
</content>
</entry>
<entry>
<title>Force zlib.crc32 and zlib.adler32 to return a signed integer on all platforms</title>
<updated>2008-03-17T18:48:05Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2008-03-17T18:48:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f48f9d38c02ef914194eeeeb6cdae770e218af00'/>
<id>urn:sha1:f48f9d38c02ef914194eeeeb6cdae770e218af00</id>
<content type='text'>
regardless of the native sizeof(long) used in the integer object.

This somewhat odd behavior of returning a signed is maintained in 2.x for
compatibility reasons of always returning an integer rather than a long object.

Fixes Issue1202 for Python 2.6
</content>
</entry>
<entry>
<title>#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.</title>
<updated>2007-12-19T02:37:44Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-12-19T02:37:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e93237dfcc4ee4feee62adafb4e7899487ca864b'/>
<id>urn:sha1:e93237dfcc4ee4feee62adafb4e7899487ca864b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompress</title>
<updated>2007-11-21T00:46:21Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-11-21T00:46:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=901071bde5eda2189cd396095bbb8934d4fa66b3'/>
<id>urn:sha1:901071bde5eda2189cd396095bbb8934d4fa66b3</id>
<content type='text'>
</content>
</entry>
</feed>
