From 6d78dec42a7233f9c8d9cb3e6cf32ef86771960e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 20 Aug 2019 15:57:59 -0400 Subject: [PATCH] clarify malloc_info format is a bit different --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d00473..da0b973 100644 --- a/README.md +++ b/README.md @@ -782,8 +782,9 @@ enabled because glibc `mallinfo` is inherently broken. It defines the fields as `int` instead of `size_t`, resulting in undefined signed overflows. It also misuses the fields and provides a strange, idiosyncratic set of values rather than following the SVID/XPG `mallinfo` definition. The `malloc_info` function -is still provided, with the same format as Android but with the version set to -`hardened_malloc-1`. The data format may be changed in the future. +is still provided, with a similar format as what Android uses, with tweaks for +hardened\_malloc and the the version set to `hardened_malloc-1`. The data +format may be changed in the future. As an example, consider the follow program from the hardened\_malloc tests: