From 59e174eee083af31363cd9da88ef3aac2d708ff8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 17 Sep 2020 17:44:01 -0400 Subject: [PATCH] update stats documentation --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d968f8..859bdda 100644 --- a/README.md +++ b/README.md @@ -836,7 +836,7 @@ is still provided, with a similar format as what Android uses, with tweaks for hardened\_malloc and 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: +As an example, consider the following program from the hardened\_malloc tests: ```c #include @@ -987,6 +987,9 @@ number to the corresponding size class. The bin index begins at 0, mapping to the 0 byte size class, followed by 1 for the 16 bytes, 2 for 32 bytes, etc. and large allocations are treated as one group. +When stats aren't enabled, the `malloc_info` output will be an empty `malloc` +element. + ## System calls This is intended to aid with creating system call whitelists via seccomp-bpf