summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorIris Chang <iris.chang@mediatek.com>2019-02-12 14:00:59 +0800
committerChristopher Ferris <cferris@google.com>2019-02-14 17:15:03 -0800
commitb34415046c91d8e4af4e748689af3cb0080e0b05 (patch)
treef69a02f5e605b2a8e0e6575804d9493b64289824 /libc/malloc_hooks/malloc_hooks.cpp
parent1b82812635e35667df9d28e7416d4b02c2083dfe (diff)
malloc debug: fix LogFreeError error log
When free_track option is enabled and malloc debug detects error in VerifyFreedPointer flow, if freed pointer's usable_size is more than g_debug->config().fill_on_free_bytes(), the error log is not correct. The max. bytes printed to error message should be the max bytes to cmp, not usable size. Bug: 124420174 Test: build pass and test pass Change-Id: I41f35ab3330e49e0a6ad276d405bf4f6c3f0ea92
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions