summaryrefslogtreecommitdiffstats
path: root/Parser/acceler.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-19 07:04:38 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-19 07:04:38 (GMT)
commit91a364df173a03c9ab7219aa23b950b072c580f3 (patch)
tree1fe8167906c5650b275bc89c5db04aef89dd7d25 /Parser/acceler.c
parentacb117eb111f4f6d0f6e7942357e7c3afe6b70f7 (diff)
downloadcpython-91a364df173a03c9ab7219aa23b950b072c580f3.zip
cpython-91a364df173a03c9ab7219aa23b950b072c580f3.tar.gz
cpython-91a364df173a03c9ab7219aa23b950b072c580f3.tar.bz2
Bugfix candidate.
Two exceedingly unlikely errors in dictresize(): 1. The loop for finding the new size had an off-by-one error at the end (could over-index the polys[] vector). 2. The polys[] vector ended with a 0, apparently intended as a sentinel value but never used as such; i.e., it was never checked, so 0 could have been used *as* a polynomial. Neither bug could trigger unless a dict grew to 2**30 slots; since that would consume at least 12GB of memory just to hold the dict pointers, I'm betting it's not the cause of the bug Fred's tracking down <wink>.
Diffstat (limited to 'Parser/acceler.c')
0 files changed, 0 insertions, 0 deletions