Fix last clusterfuzz report ##crash

This commit is contained in:
pancake 2018-10-21 16:02:36 +02:00
parent c50357fbe6
commit e6d97d2b27

View File

@ -9,7 +9,7 @@
RBinAddr *r_bflt_get_entry(struct r_bin_bflt_obj *bin) {
RBinAddr *addr = R_NEW0 (RBinAddr);
if (addr) {
if (addr && bin && bin->hdr) {
addr->paddr = bin->hdr->entry;
}
return addr;