From 0cd992c0005a4e605fe5b588e28bf9c0468d02e7 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:01:57 +0100 Subject: gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one place (GH-96513) --- Python/compile.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v0.12