Red Hat Bugzilla – Bug 1111091
Character class with literal quotation is miscompiled
Last modified: 2015-11-19 00:14:57 EST
+++ This bug was initially created as a clone of Bug #1111054 +++ This should match: $ printf '%s\n%s\n' '/[\Qa]\E]+/' 'a' | ./pcretest -d PCRE version 8.35 2014-04-04 re> ------------------------------------------------------------------ 0 7 Bra 3 a 5 ]++ 7 7 Ket 10 End ------------------------------------------------------------------ Capturing subpattern count = 0 No options First char = 'a' Need char = ']' data> No match data> Upstream fixed it by: commit 8d8c3dbadff3d0735ba696acf211c14b3025622f Author: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> Date: Wed Jun 18 17:17:03 2014 +0000 Fix bad compile of [\Qx]... where x is any character. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1487 2f5784b3-3f2a-0410-8824-cb99058d5e15 ---- RHEL-7 is affected (pcre-8.32-12.el7.x86_64)
Created attachment 910300 [details] Upstream fix ported to 8.32
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2142.html