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

This is a backport of changesets 13e2e44db99d and 525407d89277.
17 files changed:
Include/intobject.h
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_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/intobject.c
Objects/longobject.c
Objects/unicodeobject.c