Staging
v0.8.1
https://github.com/python/cpython
Revision 8b34e6146145e50cde974cbbfd087838a05871c2 authored by Michael W. Hudson on 05 March 2002, 15:37:18 UTC, committed by Michael W. Hudson on 05 March 2002, 15:37:18 UTC
    revision 1.115 of test_descr.py

SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects

Due to the bizarre definition of _PyLong_Copy(), creating an instance
of a subclass of long with a negative value could cause core dumps
later on.  Unfortunately it looks like the behavior of _PyLong_Copy()
is quite intentional, so the fix is more work than feels comfortable.

This fix is almost, but not quite, the code that Naofumi Honda added;
in addition, I added a test case.



I haven't quite worked out how to port the fix yet, but the test cases
can go straight over.
1 parent 7a4b55d
History
Tip revision: 8b34e6146145e50cde974cbbfd087838a05871c2 authored by Michael W. Hudson on 05 March 2002, 15:37:18 UTC
backport gvanrossum's checkin of
Tip revision: 8b34e61
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.1 KB
Makefile.pre.in -rw-r--r-- 25.9 KB
PLAN.txt -rw-r--r-- 14.1 KB
README -rw-r--r-- 39.6 KB
acconfig.h -rw-r--r-- 7.5 KB
configure -rwxr-xr-x 209.0 KB
configure.in -rw-r--r-- 53.9 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 19.6 KB
setup.py -rw-r--r-- 34.2 KB

README

back to top