Skip to content

Commit

Permalink
fix #2959 - oob write in bin_dyldcache.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored and XVilka committed Aug 30, 2022
1 parent 6be0213 commit 48f7fdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions librz/bin/p/bin_dyldcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ static struct MACH0_(obj_t) * bin_to_mach0(RzBinFile *bf, RzDyldBinImage *bin) {
opts.symbols_off = bin->symbols_off;

struct MACH0_(obj_t) *mach0 = MACH0_(new_buf)(buf, &opts);
if (!mach0) {
return NULL;
}

mach0->user = cache;
mach0->va2pa = &bin_obj_va2pa;
Expand Down

0 comments on commit 48f7fdf

Please sign in to comment.