]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix zip_import.c's read_directory() to use appropriate types for the values
authorGregory P. Smith <greg@krypto.org>
Mon, 30 Jan 2012 23:17:33 +0000 (15:17 -0800)
committerGregory P. Smith <greg@krypto.org>
Mon, 30 Jan 2012 23:17:33 +0000 (15:17 -0800)
commitab32066e65f67e14b3af4ed61333ed083446b225
tree5d0624df4bc9444632fcb8f130d28774ee43d608
parent2652d2570ea2d34fc790ef99ebd0c3c321fb86cb
Fix zip_import.c's read_directory() to use appropriate types for the values
being read from the header vs the values being used by fseek and ftell
(Py_ssize_t for those) and how they are computed.  Py_ssize_t is used for
actual file offsets so that files greater than 2gigs could be supported.
Updates the Py_BuildValue format string to match (including several existing
wrong 'i's that should have been 'l's).
Modules/zipimport.c