mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
libdislocator, introduces malloc_good_size for Darwin.
This commit is contained in:
@ -520,6 +520,14 @@ size_t malloc_usable_size(const void *ptr) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
size_t malloc_good_size(size_t len) {
|
||||||
|
|
||||||
|
return (len & ~(ALLOC_ALIGN_SIZE - 1)) + ALLOC_ALIGN_SIZE;
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
__attribute__((constructor)) void __dislocator_init(void) {
|
__attribute__((constructor)) void __dislocator_init(void) {
|
||||||
|
|
||||||
char *tmp = getenv("AFL_LD_LIMIT_MB");
|
char *tmp = getenv("AFL_LD_LIMIT_MB");
|
||||||
|
Reference in New Issue
Block a user