]> granicus.if.org Git - python/commit
Issue #15989: Fix several occurrences of integer overflow
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Jan 2013 10:41:45 +0000 (12:41 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 19 Jan 2013 10:41:45 +0000 (12:41 +0200)
commit9101e23ff6006d9ede7d46e8c9e7d39e23c2a3c3
treec61aebdba4dddc8f10c9460ca33b0fa3f2e1495d
parentbd8f29028eab752e8e5c73703218a701028c1a9a
parent441d30fac7f4037e4a79e4ada873de3b6f6e5a26
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/test/string_tests.py
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_posix.py
Lib/test/test_socket.py
Modules/_ctypes/stgdict.c
Modules/_io/fileio.c
Modules/_io/textio.c
Modules/parsermodule.c
Modules/posixmodule.c
Modules/selectmodule.c
Modules/socketmodule.c
Objects/fileobject.c
Objects/longobject.c
Objects/unicodeobject.c