From 7e49c6eee88c72c53969da31db95a526742191ef Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 12 Jul 2006 05:27:46 +0000 Subject: Fix uninitialized memory read reported by Valgrind when running doctest. This could happen if size == 0. --- Objects/codeobject.c | 1 + 1 file changed, 1 insertion(+) 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 @@ 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; -- cgit v0.12