[Python-checkins] CVS: python/dist/src/Misc ACKS,1.162,1.163

Guido van Rossum gvanrossum@users.sourceforge.net
Fri, 01 Mar 2002 14:24:51 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv30349

Modified Files:
	ACKS 
Log Message:
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.


Index: ACKS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/ACKS,v
retrieving revision 1.162
retrieving revision 1.163
diff -C2 -d -r1.162 -r1.163
*** ACKS	1 Mar 2002 21:31:27 -0000	1.162
--- ACKS	1 Mar 2002 22:24:49 -0000	1.163
***************
*** 204,207 ****
--- 204,208 ----
  Gerrit Holl
  Philip Homburg
+ Naofumi Honda
  Jeffrey Honig
  Rob Hooft