From: Michael S. Tsirkin Date: Fri, 9 Jan 2026 08:49:17 +0000 (-0500) Subject: tests: enable glibc malloc corruption detection X-Git-Tag: RELEASE_1_7_0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F78%2Fhead;p=thirdparty%2Fmlmmj.git tests: enable glibc malloc corruption detection Set MALLOC_CHECK_=3 in test environment to detect memory corruption issues like double-free and buffer overflows. When detected, glibc will print a diagnostic and abort the program. Co-Authored-By: Claude Opus 4.5 --- diff --git a/tests/test_env.sh.in b/tests/test_env.sh.in index 240ba8e8..e0e326dc 100644 --- a/tests/test_env.sh.in +++ b/tests/test_env.sh.in @@ -3,6 +3,9 @@ top_builddir="@abs_top_builddir@" export PATH="${top_builddir}/src:${PATH}" +# Detect memory corruption (double-free, buffer overflow) in glibc malloc +export MALLOC_CHECK_=3 + prefix="@prefix@" exec_prefix="@exec_prefix@" datarootdir="@datarootdir@"