Skip to content

Commit

Permalink
fix buffer overrun in gf_bin128_parse
Browse files Browse the repository at this point in the history
closes #1204
closes #1205
  • Loading branch information
aureliendavid committed Apr 11, 2019
1 parent f461620 commit f36525c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/os_divers.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,11 @@ GF_Err gf_bin128_parse(const char *string, bin128 value)
sscanf(szV, "%x", &v);
value[i] = v;
i++;
if (i > 15) {
// force error check below
i++;
break;
}
}
}
if (i != 16) {
Expand Down

0 comments on commit f36525c

Please sign in to comment.