]> granicus.if.org Git - python/commit
Issue #15989: Fix several occurrences of integer overflow
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Jan 2013 10:26:26 +0000 (12:26 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Jan 2013 10:26:26 +0000 (12:26 +0200)
commit441d30fac7f4037e4a79e4ada873de3b6f6e5a26
treea406cb41f1b78476445786f408b95b1cd0bdb7a6
parentff12fae80e15ad29ae2557d23e70f6ff9365b31f
Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
16 files changed:
Include/longobject.h
Lib/ctypes/test/test_structures.py
Lib/test/string_tests.py
Lib/test/test_fcntl.py
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_poll.py
Lib/test/test_socket.py
Modules/_ctypes/stgdict.c
Modules/_io/_iomodule.c
Modules/_io/fileio.c
Modules/selectmodule.c
Modules/socketmodule.c
Objects/fileobject.c
Objects/longobject.c
Objects/unicodeobject.c