From: Neal Norwitz Date: Wed, 12 Jul 2006 05:27:46 +0000 (+0000) Subject: Fix uninitialized memory read reported by Valgrind when running doctest. X-Git-Tag: v2.5b3~266 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e49c6eee88c72c53969da31db95a526742191ef;p=python 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 a9bcb0179e..89871d6cf1 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -556,6 +556,7 @@ PyCode_CheckLineNumber(PyCodeObject* co, int lasti, PyAddrPair *bounds) 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;