mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 08:41:32 +00:00
Merge pull request #1431 from devnexen/malloc_good_size_apple_libdislocator
libdislocator, introduces malloc_good_size for Darwin.
This commit is contained in:
commit
59bb4a6cc4
@ -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) {
|
||||
|
||||
char *tmp = getenv("AFL_LD_LIMIT_MB");
|
||||
|
Loading…
x
Reference in New Issue
Block a user