[Pcre-svn] [1127] code/trunk/testdata: Additional overflow t…

Página superior
Eliminar este mensaje
Autor: Subversion repository
Fecha:  
A: pcre-svn
Asunto: [Pcre-svn] [1127] code/trunk/testdata: Additional overflow test.
Revision: 1127
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1127
Author:   ph10
Date:     2019-07-05 16:49:37 +0100 (Fri, 05 Jul 2019)
Log Message:
-----------
Additional overflow test.


Modified Paths:
--------------
    code/trunk/testdata/testinput2
    code/trunk/testdata/testoutput2


Modified: code/trunk/testdata/testinput2
===================================================================
--- code/trunk/testdata/testinput2    2019-07-04 17:01:53 UTC (rev 1126)
+++ code/trunk/testdata/testinput2    2019-07-05 15:49:37 UTC (rev 1127)
@@ -5647,6 +5647,10 @@


/(?<=(?<=a)b)(?<!abcd)(?<=(?<=a)bcde)/I

+# Addition overflow
/( {32742} {42})(?<!\1{65481})/

+# Multiplication overflow
+/(X{65535})(?<=\1{32770})/
+
# End of testinput2

Modified: code/trunk/testdata/testoutput2
===================================================================
--- code/trunk/testdata/testoutput2    2019-07-04 17:01:53 UTC (rev 1126)
+++ code/trunk/testdata/testoutput2    2019-07-05 15:49:37 UTC (rev 1127)
@@ -17078,9 +17078,14 @@
 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