[Issue 11600] to!BigInt(string) accepts non-numeric input
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 27 18:25:12 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11600
--- Comment #1 from hsteoh at quickfur.ath.cx 2013-11-27 18:25:10 PST ---
Wow, this is bad. The BigInt implementation doesn't even check if the given
string contains digits, it just *assumes* anything that isn't '_' is an ASCII
digit, and simply subtracts '0' from it and treats the result as a decimal
value.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list