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 294082 Details for
Bug 431660
CVE-2008-0674 pcre: buffer overflow via large UTF-8 character class
[?]
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]
Probable patch
pcre-75to76.diff (text/plain), 1.42 KB, created by
Tomas Hoger
on 2008-02-06 09:15:21 UTC
(
hide
)
Description:
Probable patch
Filename:
MIME Type:
Creator:
Tomas Hoger
Created:
2008-02-06 09:15:21 UTC
Size:
1.42 KB
patch
obsolete
>diff -pruN pcre-7.5/pcre_compile.c pcre-7.6/pcre_compile.c >--- pcre-7.5/pcre_compile.c 2008-01-10 18:06:49.000000000 +0100 >+++ pcre-7.6/pcre_compile.c 2008-01-21 16:20:18.000000000 +0100 >@@ -2376,6 +2376,7 @@ uschar classbits[32]; > BOOL class_utf8; > BOOL utf8 = (options & PCRE_UTF8) != 0; > uschar *class_utf8data; >+uschar *class_utf8data_base; > uschar utf8_char[6]; > #else > BOOL utf8 = FALSE; >@@ -2687,6 +2688,7 @@ for (;; ptr++) > #ifdef SUPPORT_UTF8 > class_utf8 = FALSE; /* No chars >= 256 */ > class_utf8data = code + LINK_SIZE + 2; /* For UTF-8 items */ >+ class_utf8data_base = class_utf8data; /* For resetting in pass 1 */ > #endif > > /* Process characters until ] is reached. By writing this as a "do" it >@@ -2702,6 +2704,18 @@ for (;; ptr++) > { /* Braces are required because the */ > GETCHARLEN(c, ptr, ptr); /* macro generates multiple statements */ > } >+ >+ /* In the pre-compile phase, accumulate the length of any UTF-8 extra >+ data and reset the pointer. This is so that very large classes that >+ contain a zillion UTF-8 characters no longer overwrite the work space >+ (which is on the stack). */ >+ >+ if (lengthptr != NULL) >+ { >+ *lengthptr += class_utf8data - class_utf8data_base; >+ class_utf8data = class_utf8data_base; >+ } >+ > #endif > > /* Inside \Q...\E everything is literal except \E */
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 431660
: 294082