Blindfix #13659 - crash in aao with a fuzzed macho

This commit is contained in:
pancake 2019-04-08 16:33:10 +02:00
parent 4473f40533
commit 2bfee0a270

View File

@ -91,6 +91,9 @@ static ut64 getRefPtr(RCoreObjc *objc, ut64 classMethodsVA, bool *res) {
static bool objc_build_refs(RCoreObjc *objc) {
ut64 off;
if (!objc->_const || !objc->_selrefs) {
return false;
}
ut8 *buf = calloc (1, objc->_const->vsize);
if (!buf) {