Additional overflow test.

This commit is contained in:
Philip.Hazel 2019-07-05 15:49:37 +00:00
parent 2e06fdcdc1
commit f985a68ea5
2 changed files with 9 additions and 0 deletions

4
testdata/testinput2 vendored
View File

@ -5647,6 +5647,10 @@ a)"xI
/(?<=(?<=a)b)(?<!abcd)(?<=(?<=a)bcde)/I
# Addition overflow
/( {32742} {42})(?<!\1{65481})/
# Multiplication overflow
/(X{65535})(?<=\1{32770})/
# End of testinput2

View File

@ -17078,9 +17078,14 @@ Max lookbehind = 5
May match empty string
Subject length lower bound = 0
# Addition overflow
/( {32742} {42})(?<!\1{65481})/
Failed: error 187 at offset 15: lookbehind assertion is too long
# Multiplication overflow
/(X{65535})(?<=\1{32770})/
Failed: error 187 at offset 10: lookbehind assertion is too long
# End of testinput2
Error -70: PCRE2_ERROR_BADDATA (unknown error number)
Error -62: bad serialized data