Skip to content

Commit

Permalink
fix: check for exponent overflow in monomial: x65000
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes14 committed Feb 8, 2016
1 parent 1adac1b commit 0da7db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpolys/polys/monomials/p_polys.cc
Expand Up @@ -1377,7 +1377,7 @@ const char * p_Read(const char *st, poly &rc, const ring r)
{
const char *s_save=s;
s = eati(s,&i);
if (((unsigned long)i) > r->bitmask)
if (((unsigned long)i) > r->bitmask/2)
{
// exponent to large: it is not a monomial
p_LmDelete(&rc,r);
Expand Down

0 comments on commit 0da7db4

Please sign in to comment.