mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00

Avoid undefined behavior and wrong results with huge exponents. Found with afl-fuzz and UBSan.
18 lines
381 B
Plaintext
18 lines
381 B
Plaintext
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
|