summaryrefslogtreecommitdiffstats
path: root/libc/bionic/dlmalloc.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-25 20:54:14 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-03-25 20:54:14 +0000
commite51d75a9acef86008f4d64cf482bbc65e24dc66c (patch)
treef31c266db4539b3ce21e6c6baca1ee4bc858f10d /libc/bionic/dlmalloc.c
parent48f25cef45f8f68567d528a5d833ed45cb760bec (diff)
parent65a8eb606f2104f4b14514fa2a89d2867167793b (diff)
downloadbionic-e51d75a9acef86008f4d64cf482bbc65e24dc66c.zip
bionic-e51d75a9acef86008f4d64cf482bbc65e24dc66c.tar.gz
bionic-e51d75a9acef86008f4d64cf482bbc65e24dc66c.tar.bz2
Merge "Clarify the dlmalloc USAGE_ERROR."
Diffstat (limited to 'libc/bionic/dlmalloc.c')
-rw-r--r--libc/bionic/dlmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/bionic/dlmalloc.c b/libc/bionic/dlmalloc.c
index 7d4ef0f..87f772b 100644
--- a/libc/bionic/dlmalloc.c
+++ b/libc/bionic/dlmalloc.c
@@ -47,7 +47,8 @@ static void __bionic_heap_corruption_error(const char* function) {
}
static void __bionic_heap_usage_error(const char* function, void* address) {
- __libc_format_log(ANDROID_LOG_FATAL, "libc", "@@@ ABORTING: invalid address %p passed to %s",
+ __libc_format_log(ANDROID_LOG_FATAL, "libc",
+ "@@@ ABORTING: invalid address or address of corrupt block %p passed to %s",
address, function);
// So that we can get a memory dump around the specific address.
*((int**) 0xdeadbaad) = (int*) address;