mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
Fix null deref in the dyldcache ##crash
This commit is contained in:
parent
9e64f8c14c
commit
721f818364
@ -1791,7 +1791,7 @@ static objc_cache_opt_info *get_objc_opt_info(RBinFile *bf, RDyldCache *cache) {
|
||||
RListIter *iter;
|
||||
RDyldBinImage *bin;
|
||||
r_list_foreach (cache->bins, iter, bin) {
|
||||
if (strcmp (bin->file, "lib/libobjc.A.dylib")) {
|
||||
if (bin->file && strcmp (bin->file, "lib/libobjc.A.dylib")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user