summaryrefslogtreecommitdiff
path: root/test/XPath/expr
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2016-04-21 16:37:26 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2017-05-31 16:04:37 +0200
commitf4029cd413940677a310b48cd6cf6acf9cf33008 (patch)
tree22a390eaf17ef8f9436fb9d5f89fb50dcec89fd9 /test/XPath/expr
parenta58331a6ee4d4c161cebfa4e0d9a090945c6bf23 (diff)
downloadlibxml2-f4029cd413940677a310b48cd6cf6acf9cf33008.tar.gz
Check XPath exponents for overflow
Avoid undefined behavior and wrong results with huge exponents. Found with afl-fuzz and UBSan.
Diffstat (limited to 'test/XPath/expr')
-rw-r--r--test/XPath/expr/base8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/XPath/expr/base b/test/XPath/expr/base
index 823f64b7..cc187356 100644
--- a/test/XPath/expr/base
+++ b/test/XPath/expr/base
@@ -6,4 +6,12 @@
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