diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-13 16:00:48 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-10-13 16:00:48 +0000 |
commit | a2d87770aebc2ba13d6943ff1fcfae0fc26a3134 (patch) | |
tree | 86184f9e683f46bb8da21af6c1592b69ade2045a /pcre_compile.c | |
parent | c53d4af2465bf11a8aefceb67bf7f7ae19b08ac5 (diff) | |
download | pcre-a2d87770aebc2ba13d6943ff1fcfae0fc26a3134.tar.gz |
Fix bad conditional recursion test bug when a group with name starting "R"
exists.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1667 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_compile.c')
-rw-r--r-- | pcre_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pcre_compile.c b/pcre_compile.c index fb80ed1..67c74e8 100644 --- a/pcre_compile.c +++ b/pcre_compile.c @@ -6951,7 +6951,8 @@ for (;; ptr++) slot = cd->name_table; for (i = 0; i < cd->names_found; i++) { - if (STRNCMP_UC_UC(name, slot+IMM2_SIZE, namelen) == 0) break; + if (STRNCMP_UC_UC(name, slot+IMM2_SIZE, namelen) == 0 && + slot[IMM2_SIZE+namelen] == 0) break; slot += cd->name_entry_size; } |