Commit 4a41f1db authored by Neal Norwitz's avatar Neal Norwitz

Fix uninitialized memory read reported by Valgrind when running doctest.

This could happen if size == 0.
parent 61612ad8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment