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 291890 Details for
Bug 428320
CVE-2008-0172 boost regular expression NULL dereference flaw
[?]
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 for 1.33.1
boost-regex.patch (text/plain), 1.69 KB, created by
Petr Machata
on 2008-01-16 20:41:24 UTC
(
hide
)
Description:
Fix for 1.33.1
Filename:
MIME Type:
Creator:
Petr Machata
Created:
2008-01-16 20:41:24 UTC
Size:
1.69 KB
patch
obsolete
>--- ./boost/regex/v4/basic_regex_parser.hpp.orig 2008-01-16 21:09:57.000000000 +0100 >+++ ./boost/regex/v4/basic_regex_parser.hpp 2008-01-16 21:08:30.000000000 +0100 >@@ -727,7 +727,8 @@ > ++m_position; > } > } >- if(0 == this->m_last_state) >+ if(0 == this->m_last_state >+ || this->m_last_state->type == syntax_element_assert_backref) > { > fail(regex_constants::error_badrepeat, ::boost::re_detail::distance(m_base, m_position)); > return false; >@@ -767,6 +768,7 @@ > case syntax_element_restart_continue: > case syntax_element_jump: > case syntax_element_startmark: >+ case syntax_element_backstep: > // can't legally repeat any of the above: > fail(regex_constants::error_badrepeat, m_position - m_base); > return false; >@@ -1853,6 +1855,7 @@ > if(markid == -4) > { > re_syntax_base* b = this->getaddress(expected_alt_point); >+ // Make sure we have exactly one alternative following this state: > if(b->type != syntax_element_alt) > { > re_alt* alt = static_cast<re_alt*>(this->insert_state(expected_alt_point, syntax_element_alt, sizeof(re_alt))); >@@ -1863,6 +1866,15 @@ > fail(regex_constants::error_bad_pattern, m_position - m_base); > return false; > } >+ // check for invalid repetition of next state: >+ b = this->getaddress(expected_alt_point); >+ b = this->getaddress(static_cast<re_alt*>(b)->next.i, b); >+ if((b->type != syntax_element_assert_backref) >+ && (b->type != syntax_element_startmark)) >+ { >+ fail(regex_constants::error_badrepeat, m_position - m_base); >+ return false; >+ } > } > // > // append closing parenthesis state:
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 428320
:
291643
|
291644
| 291890