Skip to content

Commit

Permalink
fix: crash when too big value in M:
Browse files Browse the repository at this point in the history
Issue #103
  • Loading branch information
moinejf committed Aug 31, 2021
1 parent 8ad4287 commit 5a6b55f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abcparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,8 @@ static char top_err[] = "Cannot identify meter top";
wmeasure = m1 * BASE_LEN / m2;
s->u.meter.expdur = 1;
}
if (wmeasure > BASE_LEN * 16 || wmeasure < 0)
return "Too big meter value";
s->u.meter.wmeasure = wmeasure;
s->u.meter.nmeter = nm;

Expand Down

0 comments on commit 5a6b55f

Please sign in to comment.