Skip to content

Commit

Permalink
Fix #22293 - uaf in bin.avr file
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 5, 2023
1 parent b86204a commit bf1a3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/bin/p/bin_avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ static bool load(RBinFile *bf, RBuffer *buf, ut64 loadaddr) {

static void destroy(RBinFile *bf) {
AvrPriv *ap = (AvrPriv*)(bf->bo->bin_obj);
r_buf_free (ap->b);
R_FREE (bf->bo->bin_obj);
// r_buf_free (ap->b); // this is freed by RBinFile.free()
free (ap);
}

static RBinInfo* info(RBinFile *bf) {
Expand Down

0 comments on commit bf1a3b2

Please sign in to comment.