Skip to content

Commit

Permalink
Fix another off-by-one error in pmc_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
atrodo committed Mar 4, 2011
1 parent f99a3e4 commit baf4b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmc.c
Expand Up @@ -115,7 +115,7 @@ lorito_pmc_decode(Lorito_Interp *interp, Lorito_PMC *src, int offset)
{
return result;
}
if (offset+length >= src->size)
if (offset+length > src->size)
{
return result;
}
Expand Down

0 comments on commit baf4b51

Please sign in to comment.