summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-07-11 13:00:26 -0700
committerJosh Gao <jmgao@google.com>2019-07-11 13:00:26 -0700
commite1d121bef66565ea970872c326634eb7f7eb7acb (patch)
tree2ea3900a513d535b2eb8b6fa0af6c2371c5ba9e1 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parent7b85fb0d393c3119501779176b532b37182b0584 (diff)
Avoid calling snprintf in bionic_trace_begin.
snprintf always calls free (on a null pointer) in its epilogue, which results in infinite recursion if free calls a function that calls bionic_trace_begin (e.g. when perfetto attempts to lock a mutex in RecordFree). Bug: http://b/137284735 Test: treehugger Change-Id: I51c5b32e8f4e394be4602e06c7b94797df73c37b
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions