From 37e9ea23313cfa716ecf8e139e092e469966a9a4 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Tue, 3 Nov 2015 20:09:33 +0000 Subject: [PATCH] Fix buglet in recent name length patch. --- src/pcre2_compile.c | 1 + testdata/testoutput9 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c index eaa33fc..da82b9e 100644 --- a/src/pcre2_compile.c +++ b/src/pcre2_compile.c @@ -2988,6 +2988,7 @@ for (; ptr < cb->end_pattern; ptr++) if ((unsigned int)arglen > MAX_MARK) { *errorcodeptr = ERR76; + *ptrptr = ptr; return -1; } } diff --git a/testdata/testoutput9 b/testdata/testoutput9 index 3762b6e..670ea67 100644 --- a/testdata/testoutput9 +++ b/testdata/testoutput9 @@ -314,7 +314,7 @@ Failed: error 176 at offset 259: name is too long in (*MARK), (*PRUNE), (*SKIP), XX /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF)XX/mark,alt_verbnames -Failed: error 176 at offset 3: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) +Failed: error 176 at offset 258: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) XX /(*:0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDE)XX/mark