[Python-checkins] r50599 - python/trunk/Objects/codeobject.c
neal.norwitz
python-checkins at python.org
Wed Jul 12 07:27:46 CEST 2006
Author: neal.norwitz
Date: Wed Jul 12 07:27:46 2006
New Revision: 50599
Modified:
python/trunk/Objects/codeobject.c
Log:
Fix uninitialized memory read reported by Valgrind when running doctest.
This could happen if size == 0.
Modified: python/trunk/Objects/codeobject.c
==============================================================================
--- python/trunk/Objects/codeobject.c (original)
+++ python/trunk/Objects/codeobject.c Wed Jul 12 07:27:46 2006
@@ -556,6 +556,7 @@
the line increments here, treating them as byte
increments gets confusing, to say the least. */
+ bounds->ap_lower = 0;
while (size > 0) {
if (addr + *p > lasti)
break;
More information about the Python-checkins
mailing list