mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-23 22:49:35 -05:00
only provide malloc_info stub for glibc
This has a proper implementation in Bionic outside of the malloc implementation via the extended mallinfo API.
This commit is contained in:
parent
350d0e5fd2
commit
0f107cd2a3
@ -1628,10 +1628,12 @@ EXPORT struct mallinfo h_mallinfo(void) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __GLIBC__
|
||||||
EXPORT int h_malloc_info(UNUSED int options, UNUSED FILE *fp) {
|
EXPORT int h_malloc_info(UNUSED int options, UNUSED FILE *fp) {
|
||||||
errno = ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
COLD EXPORT void *h_malloc_get_state(void) {
|
COLD EXPORT void *h_malloc_get_state(void) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user