Skip to content

Commit

Permalink
fixup indxf use-after-free
Browse files Browse the repository at this point in the history
from 3b47eb0
dont just free the pair.

Detected by oss-fuzz issue 32275
  • Loading branch information
rurban committed Mar 20, 2021
1 parent 23a5dd6 commit 5b27162
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/in_dxf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12282,6 +12282,8 @@ dxf_objects_read (Bit_Chain *restrict dat, Dwg_Data *restrict dwg)
DXF_RETURN_ENDSEC (0);
LOG_WARN ("Unhandled 0 %s (%s)", name, "objects");
dxf_free_pair (pair);
pair = dxf_read_pair (dat);
DXF_CHECK_EOF;
}
}
dxf_free_pair (pair);
Expand Down

0 comments on commit 5b27162

Please sign in to comment.