Edit

kc3-lang/libxml2/test/XPath/expr/base

Branch :

  • Show log

    Commit

  • Author : Nick Wellnhofer
    Date : 2016-04-21 16:37:26
    Hash : f4029cd4
    Message : Check XPath exponents for overflow Avoid undefined behavior and wrong results with huge exponents. Found with afl-fuzz and UBSan.

  • test/XPath/expr/base
  • 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