Skip to content

Commit d34e08b

Browse files
Correct typo in malloc debug environment variable (#2391)
I don't think this is currently used for anything. While the malloc-test machinery is working atm, some errors won't be caught due to the typo. https://man7.org/linux/man-pages/man3/mallopt.3.html says it should be MALLOC_CHECK_.
1 parent ef71b09 commit d34e08b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ssl/test/runner/runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ func runTest(dispatcher *shimDispatcher, statusChan chan statusMsg, test *testCa
16581658
if *mallocTestDebug {
16591659
env = append(env, "MALLOC_BREAK_ON_FAIL=1")
16601660
}
1661-
env = append(env, "_MALLOC_CHECK=1")
1661+
env = append(env, "MALLOC_CHECK_=1")
16621662
}
16631663

16641664
shim, err := newShimProcess(dispatcher, shimPath, flags, env)

util/all_tests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func runTestOnce(test test, mallocNumToFail int64) (passed bool, err error) {
207207
if *mallocTestDebug {
208208
cmd.Env = append(cmd.Env, "MALLOC_ABORT_ON_FAIL=1")
209209
}
210-
cmd.Env = append(cmd.Env, "_MALLOC_CHECK=1")
210+
cmd.Env = append(cmd.Env, "MALLOC_CHECK_=1")
211211
}
212212

213213
if err := cmd.Start(); err != nil {

0 commit comments

Comments
 (0)