From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Wed, 7 Sep 2022 13:01:57 +0000 (+0100) Subject: gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one... X-Git-Tag: v3.12.0a1~459 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cd992c0005a4e605fe5b588e28bf9c0468d02e7;p=thirdparty%2FPython%2Fcpython.git gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one place (GH-96513) --- diff --git a/Python/compile.c b/Python/compile.c index 862999d87b85..33a8679fd888 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; }