mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
add NULL check to malloc_usable_size
This commit is contained in:
parent
e6fccdd9c1
commit
441b64b467
@ -466,7 +466,7 @@ void *reallocarray(void *ptr, size_t elem_len, size_t elem_cnt) {
|
||||
|
||||
size_t malloc_usable_size(void *ptr) {
|
||||
|
||||
return PTR_L(ptr);
|
||||
return ptr ? PTR_L(ptr) : 0;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user