Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 847676 Details for
Bug 1048101
Range check wrongly optimized in JIT
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix
pcre-8.34-Fix-range-check-in-JIT-path.patch (text/plain), 1.50 KB, created by
Petr Pisar
on 2014-01-09 14:13:21 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2014-01-09 14:13:21 UTC
Size:
1.50 KB
patch
obsolete
>From c061f6a865a473cf93aae1e6a0ccd2325509a6b2 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> >Date: Thu, 9 Jan 2014 13:39:28 +0100 >Subject: [PATCH] Fix range check in JIT path >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Jitted range check was wrong: > > re> /[efij]/S+ >data> e >No match > >while interpretted path is correct: > > re> /[efij]/ >data> e > 0: e > >This fix is part of: > >commit c07887b22a83fba842e88889c9e57a622b9ee439 >Author: zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15> >Date: Sun Dec 22 20:47:08 2013 +0000 > > The auto-possessification of character sets were improved. The JIT compiler also optimizes more character set checks. > > git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1415 2f5784b3-3f2a-0410-8824-cb99058d5e15 > ><http://bugs.exim.org/show_bug.cgi?id=1423> > >Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com> >--- > pcre_jit_compile.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c >index d070263..47447da 100644 >--- a/pcre_jit_compile.c >+++ b/pcre_jit_compile.c >@@ -3573,7 +3573,9 @@ switch(ranges[0]) > } > return TRUE; > } >- if ((ranges[3] - ranges[2]) == (ranges[5] - ranges[4]) && is_powerof2(ranges[4] - ranges[2])) >+ if ((ranges[3] - ranges[2]) == (ranges[5] - ranges[4]) >+ && (ranges[2] | (ranges[4] - ranges[2])) == ranges[4] >+ && is_powerof2(ranges[4] - ranges[2])) > { > if (readch) > read_char(common); >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1048101
: 847676