Hash :
f4029cd4
Author :
Date :
2016-04-21T16:37:26
Check XPath exponents for overflow Avoid undefined behavior and wrong results with huge exponents. Found with afl-fuzz and UBSan.
1
1+2
2*3
1+2*3+4
(1+2)*(3+4)
1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1
0.000000000000000000000000000000000000000000000000001
-0.000000000000000000000000000000000000000000000000001
1e2147483648
1e4294967296
1e9223372036854775808
1e18446744073709551616
1e-2147483649
1e-4294967296
1e-9223372036854775809
1e-18446744073709551616
self::-name