mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
If the for loop isn't entered, entryblock will be NULL. If passed
to stackdepth_walk it will be dereffed. Not sure if I found with failmalloc or Klockwork #55.
This commit is contained in:
parent
18b6adf9b2
commit
f71847e645
1 changed files with 2 additions and 0 deletions
|
@ -4022,6 +4022,8 @@ stackdepth(struct compiler *c)
|
||||||
b->b_startdepth = INT_MIN;
|
b->b_startdepth = INT_MIN;
|
||||||
entryblock = b;
|
entryblock = b;
|
||||||
}
|
}
|
||||||
|
if (!entryblock)
|
||||||
|
return 0;
|
||||||
return stackdepth_walk(c, entryblock, 0, 0);
|
return stackdepth_walk(c, entryblock, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue