From b570747d2897787c953e920d6f1c04c79e54eddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=B6rgens?= Date: Tue, 13 Sep 2022 20:15:11 +0800 Subject: [PATCH] gh-96678: Avoid undefined behaviour in test (GH-96672) (cherry picked from commit 6ba686d97fd6d2a2169696c6629f7de9482f52db) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Görgens --- Programs/_testembed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Programs/_testembed.c b/Programs/_testembed.c index f84445690eb8f6..a2a2ff40b2774b 100644 --- a/Programs/_testembed.c +++ b/Programs/_testembed.c @@ -1581,7 +1581,7 @@ static int test_init_is_python_build(void) config._is_python_build = INT_MAX; env = getenv("NEGATIVE_ISPYTHONBUILD"); if (env && strcmp(env, "0") != 0) { - config._is_python_build++; + config._is_python_build = INT_MIN; } init_from_config_clear(&config); Py_Finalize();