mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-19 21:04:33 -05:00
clarify malloc_info format is a bit different
This commit is contained in:
parent
2e4ab73fb6
commit
6d78dec42a
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user