mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
Fix null deref in xnu.kernelcache ##crash
* Reported by @xshad3 via huntr.dev
This commit is contained in:
parent
72ffc0271f
commit
feaa4e7f73
@ -242,7 +242,9 @@ static bool load_buffer(RBinFile *bf, void **bin_obj, RBuffer *buf, ut64 loadadd
|
||||
|
||||
beach:
|
||||
r_buf_free (fbuf);
|
||||
obj->cache_buf = NULL;
|
||||
if (obj) {
|
||||
obj->cache_buf = NULL;
|
||||
}
|
||||
MACH0_(mach0_free) (main_mach0);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user