Skip to content

Commit

Permalink
Fix radareorg#6673 - Fix oob read in omf bin plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 12, 2017
1 parent ba63a77 commit ea518fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/bin/p/bin_omf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static int destroy(RBinFile *arch) {

static int check_bytes(const ut8 *buf, ut64 length) {
int i;
if (!buf) {
if (!buf || length < 4) {
return false;
}
if ((*buf != 0x80 && *buf != 0x82) || length < 4) {
Expand Down

0 comments on commit ea518fa

Please sign in to comment.