mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-19 04:44:27 -05:00
alloc_size attribute for legacy valloc function
This commit is contained in:
parent
f3efc26638
commit
aa1746a90d
@ -80,7 +80,7 @@ int h_malloc_info(int options, FILE *fp);
|
|||||||
__attribute__((malloc)) __attribute__((alloc_size(2))) __attribute__((alloc_align(1)))
|
__attribute__((malloc)) __attribute__((alloc_size(2))) __attribute__((alloc_align(1)))
|
||||||
void *h_memalign(size_t alignment, size_t size);
|
void *h_memalign(size_t alignment, size_t size);
|
||||||
#ifndef __ANDROID__
|
#ifndef __ANDROID__
|
||||||
__attribute__((malloc)) void *h_valloc(size_t size);
|
__attribute__((malloc)) __attribute__((alloc_size(1))) void *h_valloc(size_t size);
|
||||||
__attribute__((malloc)) void *h_pvalloc(size_t size);
|
__attribute__((malloc)) void *h_pvalloc(size_t size);
|
||||||
#endif
|
#endif
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
|
Loading…
Reference in New Issue
Block a user