commit | 7e49c6eee88c72c53969da31db95a526742191ef | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Wed Jul 12 05:27:46 2006 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Wed Jul 12 05:27:46 2006 +0000 |
tree | 909d3ea9fef4fc16c7ce4963a879fec13fc7f5ea | |
parent | 41efc144980d27f62c74ae864819e21070f0ce90 [diff] [blame] |
Fix uninitialized memory read reported by Valgrind when running doctest. This could happen if size == 0.
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index a9bcb01..89871d6 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c
@@ -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;