diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-09-07 13:01:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 13:01:57 (GMT) |
commit | 0cd992c0005a4e605fe5b588e28bf9c0468d02e7 (patch) | |
tree | 020942674844a61ceaa730d8d01c52be48102520 /Python/compile.c | |
parent | dde15f5879c3576db42ee4366fb684747c31459f (diff) | |
download | cpython-0cd992c0005a4e605fe5b588e28bf9c0468d02e7.zip cpython-0cd992c0005a4e605fe5b588e28bf9c0468d02e7.tar.gz cpython-0cd992c0005a4e605fe5b588e28bf9c0468d02e7.tar.bz2 |
gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one place (GH-96513)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 862999d..33a8679 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7075,6 +7075,7 @@ stackdepth(basicblock *entryblock, int code_flags) return -1; } int new_depth = depth + effect; + assert(new_depth >= 0); /* invalid code or bug in stackdepth() */ if (new_depth > maxdepth) { maxdepth = new_depth; } |