summaryrefslogtreecommitdiff
path: root/Lib/idlelib/CallTips.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-10-08 21:01:07 +0000
committerTim Peters <tim.peters@gmail.com>2002-10-08 21:01:07 +0000
commitcfac1d4a1894789cc52e77723c9008f300a9050b (patch)
tree2695970abf9026a1be1ae6a4651a5eebaf7e3808 /Lib/idlelib/CallTips.py
parent8696ebcd28d38f74ee0ffa2cd82d9db1c0bad8df (diff)
downloadcpython-git-cfac1d4a1894789cc52e77723c9008f300a9050b.tar.gz
The
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. I'll backport this to the 2.2 branch next.
Diffstat (limited to 'Lib/idlelib/CallTips.py')
0 files changed, 0 insertions, 0 deletions