Fix null deref in the dyldcache ##crash

This commit is contained in:
pancake 2023-04-14 11:02:03 +02:00
parent 9e64f8c14c
commit 721f818364

View File

@ -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;
}