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 259921 Details for
Bug 384781
CVE-2006-7226 pcre miscalculation of memory requirements for repeated subpattern containing a named recursion or subroutine reference
[?]
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]
Patch agains pcre 6.4 provided by Ludwig Nussel of SUSE
pcre-6.4-ver6.7issue26.diff (text/plain), 1.38 KB, created by
Tomas Hoger
on 2007-11-15 15:20:36 UTC
(
hide
)
Description:
Patch agains pcre 6.4 provided by Ludwig Nussel of SUSE
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2007-11-15 15:20:36 UTC
Size:
1.38 KB
patch
obsolete
>26. If a subpattern containing a named recursion or subroutine reference such > as (?P>B) was quantified, for example (xxx(?P>B)){3}, the calculation of > the space required for the compiled pattern went wrong and gave too small a > value. Depending on the environment, this could lead to "Failed: internal > error: code overflow at offset 49" or "glibc detected double free or > corruption" errors. >Index: pcre-6.4/pcre_compile.c >=================================================================== >--- pcre-6.4.orig/pcre_compile.c >+++ pcre-6.4/pcre_compile.c >@@ -4506,6 +4506,7 @@ while ((c = *(++ptr)) != 0) > as to use the code for quantified brackets. We jump down and use the > code that handles this for real brackets. */ > >+ RECURSE_CHECK_QUANTIFIED: > if (ptr[1] == '+' || ptr[1] == '*' || ptr[1] == '?' || ptr[1] == '{') > { > length += 2 + 2 * LINK_SIZE; /* to make bracketed */ >@@ -4569,13 +4570,14 @@ while ((c = *(++ptr)) != 0) > > if (*ptr == '=' || *ptr == '>') > { >+ length += 1 + 1*LINK_SIZE; > while ((compile_block.ctypes[*(++ptr)] & ctype_word) != 0); > if (*ptr != ')') > { > errorcode = ERR42; > goto PCRE_ERROR_RETURN; > } >- break; >+ goto RECURSE_CHECK_QUANTIFIED; > } > > /* Unknown character after (?P */
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 384781
: 259921