Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision f8e943f193a3b34f056d7b3a79b794d3b747685f authored by Tim Peters on 08 October 2002, 21:03:26 UTC, committed by Tim Peters on 08 October 2002, 21:03:26 UTC
list(xrange(sys.maxint / 4)) test. Changed 4 to 2. The belief is that this test intended to trigger a bit of code in listobject.c's NRESIZE macro that's looking for arithmetic overflow. As written, it doesn't achieve that, though, and leaves it up to the platform realloc() as to whether it wants to allocate 2 gigabytes. Some platforms say "sure!", although they don't appear to mean it, and disaster ensues. Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow test instead, leaving the platform realloc() out of it.
1 parent aff84f7
Tip revision: f8e943f193a3b34f056d7b3a79b794d3b747685f authored by Tim Peters on 08 October 2002, 21:03:26 UTC
The
The
Tip revision: f8e943f
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 17 bytes |
atof.c | -rw-r--r-- | 815 bytes |
bltinmodule.c | -rw-r--r-- | 46.0 KB |
ceval.c | -rw-r--r-- | 83.7 KB |
codecs.c | -rw-r--r-- | 10.2 KB |
compile.c | -rw-r--r-- | 126.5 KB |
dup2.c | -rw-r--r-- | 685 bytes |
dynload_aix.c | -rw-r--r-- | 5.3 KB |
dynload_beos.c | -rw-r--r-- | 6.3 KB |
dynload_dl.c | -rw-r--r-- | 561 bytes |
dynload_hpux.c | -rw-r--r-- | 1.3 KB |
dynload_mac.c | -rw-r--r-- | 3.3 KB |
dynload_next.c | -rw-r--r-- | 4.5 KB |
dynload_os2.c | -rw-r--r-- | 1020 bytes |
dynload_shlib.c | -rw-r--r-- | 2.1 KB |
dynload_stub.c | -rw-r--r-- | 202 bytes |
dynload_win.c | -rw-r--r-- | 7.5 KB |
errors.c | -rw-r--r-- | 14.7 KB |
exceptions.c | -rw-r--r-- | 30.0 KB |
fmod.c | -rw-r--r-- | 435 bytes |
frozen.c | -rw-r--r-- | 1.2 KB |
frozenmain.c | -rw-r--r-- | 1.3 KB |
future.c | -rw-r--r-- | 6.0 KB |
getargs.c | -rw-r--r-- | 32.9 KB |
getcompiler.c | -rw-r--r-- | 366 bytes |
getcopyright.c | -rw-r--r-- | 504 bytes |
getcwd.c | -rw-r--r-- | 1.3 KB |
getmtime.c | -rw-r--r-- | 318 bytes |
getopt.c | -rw-r--r-- | 2.3 KB |
getplatform.c | -rw-r--r-- | 130 bytes |
getversion.c | -rw-r--r-- | 290 bytes |
graminit.c | -rw-r--r-- | 29.5 KB |
hypot.c | -rw-r--r-- | 282 bytes |
import.c | -rw-r--r-- | 60.7 KB |
importdl.c | -rw-r--r-- | 2.0 KB |
importdl.h | -rw-r--r-- | 951 bytes |
mactoolboxglue.c | -rw-r--r-- | 13.9 KB |
marshal.c | -rw-r--r-- | 17.9 KB |
memmove.c | -rw-r--r-- | 439 bytes |
modsupport.c | -rw-r--r-- | 10.0 KB |
mysnprintf.c | -rw-r--r-- | 2.6 KB |
mystrtoul.c | -rw-r--r-- | 3.1 KB |
pyfpe.c | -rw-r--r-- | 623 bytes |
pystate.c | -rw-r--r-- | 6.4 KB |
pythonrun.c | -rw-r--r-- | 33.8 KB |
sigcheck.c | -rw-r--r-- | 529 bytes |
strdup.c | -rw-r--r-- | 256 bytes |
strerror.c | -rw-r--r-- | 485 bytes |
strtod.c | -rw-r--r-- | 5.1 KB |
structmember.c | -rw-r--r-- | 5.5 KB |
symtable.c | -rw-r--r-- | 4.4 KB |
sysmodule.c | -rw-r--r-- | 28.0 KB |
thread.c | -rw-r--r-- | 2.3 KB |
thread_beos.h | -rw-r--r-- | 7.5 KB |
thread_cthread.h | -rw-r--r-- | 3.6 KB |
thread_foobar.h | -rw-r--r-- | 2.5 KB |
thread_lwp.h | -rw-r--r-- | 3.8 KB |
thread_nt.h | -rw-r--r-- | 9.6 KB |
thread_os2.h | -rw-r--r-- | 4.5 KB |
thread_pth.h | -rw-r--r-- | 7.1 KB |
thread_pthread.h | -rw-r--r-- | 12.3 KB |
thread_sgi.h | -rw-r--r-- | 11.8 KB |
thread_solaris.h | -rw-r--r-- | 4.3 KB |
thread_wince.h | -rw-r--r-- | 4.0 KB |
traceback.c | -rw-r--r-- | 6.5 KB |
Computing file changes ...