mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
acb85e2b41
Some system libraries call malloc_zone_free directly instead of free, and sometimes they do that with the wrong zone. When that happens, we circle back, trying to find the right zone, and call malloc_zone_free with the right one, but when we can't find one, we crash, which matches what the system free() would do. Except in one case where the pointer we're being passed is NULL, in which case we can't trace it back to any zone, but shouldn't crash (system free() explicitly doesn't crash in that case). --HG-- extra : rebase_source : 17efdcd80f1a53be7ab6b7293bfb6060a9aa4a48 |
||
---|---|---|
.. | ||
malloc_decls.h | ||
moz.build | ||
mozmemory_wrap.c | ||
mozmemory_wrap.h | ||
mozmemory.h | ||
replace_malloc_bridge.h | ||
replace_malloc.h | ||
zone.c |