Fix uninitialized memory read reported by Valgrind when running doctest.
This could happen if size == 0.
This commit is contained in:
parent
41efc14498
commit
7e49c6eee8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue