]> www.ginac.de Git - cln.git/commit
Fix integer input with leading zeros in power-of-two base.
authorRichard Kreckel <kreckel@ginac.de>
Sat, 6 Oct 2012 20:44:34 +0000 (22:44 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Sat, 6 Oct 2012 20:44:34 +0000 (22:44 +0200)
commit4a477b0cc3dd7fbfb23b25090ff8c8869c8fa21a
tree7bdb059c6d65b85860a48051c460340a0be091d5
parentb86458e11ffdc750ee8e356effd97896f3bc749f
Fix integer input with leading zeros in power-of-two base.

Reading leading '0' characters in integers of base 2, 4, 8, 16, or 32
could result in a NUDS with leading zero digits. This is against the
rules. The result was a misbehaving cl_I down the road.

Thanks to Morgan Deters <mdeters@cs.nyu.edu> of the CVC4 team.
src/integer/conv/cl_I_from_digits.cc