]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Run samba.tests.segfault with TALLOC_FREE_FILL
authorAndrew Bartlett <abartlet@samba.org>
Sun, 3 Dec 2023 21:34:57 +0000 (10:34 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 Mar 2024 23:42:34 +0000 (23:42 +0000)
This helps make use-after-free testing reliable.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/selftest/tests.py

index 310226f625af668d89a934e3289bb53f4736767d..7a93df2134d87566131009f166694791d112f393 100755 (executable)
@@ -1377,7 +1377,8 @@ planoldpythontestsuite("ad_dc",
                        extra_args=['-U"$USERNAME%$PASSWORD"'])
 planoldpythontestsuite("ad_dc",
                        "samba.tests.segfault",
-                       extra_args=['-U"$USERNAME%$PASSWORD"'])
+                       extra_args=['-U"$USERNAME%$PASSWORD"'],
+                       environ={"TALLOC_FREE_FILL": "0xab"})
 # Need to test the password hashing in multiple environments to ensure that
 # all the possible options are covered
 #