Skip to content

Commit

Permalink
bb11940 - fixing heap overflow in rfc2037. Patch submitted by Suleman…
Browse files Browse the repository at this point in the history
… Ali
  • Loading branch information
Mickey Sola committed Oct 27, 2017
1 parent 39c89d1 commit d1100be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclamav/mbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,7 @@ rfc2047(const char *in)
memcpy(pout, blobGetData(b), len);
blobDestroy(b);
messageDestroy(m);
if(pout[len - 1] == '\n')
if(len > 0 && pout[len - 1] == '\n')
pout += len - 1;
else
pout += len;
Expand Down

0 comments on commit d1100be

Please sign in to comment.