dev-zero 08/01/24 15:14:28
Modified: 07_all_1.34.1-CVE-2008-0171_and_0172.patch
Log:
Converted to unix line endings.
Revision Changes Path
1.2 src/patchsets/boost/1.34.1/patches/07_all_1.34.1-CVE-2008-0171_and_0172.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/boost/1.34.1/patches/07_all_1.34.1-CVE-2008-0171_and_0172.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/boost/1.34.1/patches/07_all_1.34.1-CVE-2008-0171_and_0172.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/boost/1.34.1/patches/07_all_1.34.1-CVE-2008-0171_and_0172.patch?r1=1.1&r2=1.2
Index: 07_all_1.34.1-CVE-2008-0171_and_0172.patch
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/boost/1.34.1/patches/07_all_1.34.1-CVE-2008-0171_and_0172.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 07_all_1.34.1-CVE-2008-0171_and_0172.patch 24 Jan 2008 12:47:18 -0000 1.1
+++ 07_all_1.34.1-CVE-2008-0171_and_0172.patch 24 Jan 2008 15:14:27 -0000 1.2
@@ -1,50 +1,50 @@
-Index: /trunk/boost/regex/v4/basic_regex_parser.hpp
-===================================================================
---- boost/regex/v4/basic_regex_parser.hpp (revision 38864)
-+++ boost/regex/v4/basic_regex_parser.hpp (revision 42674)
-@@ -785,4 +785,5 @@
- 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);
-@@ -1870,4 +1871,5 @@
- {
- 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)
- {
-@@ -1878,4 +1880,13 @@
- {
- 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;
- }
-Index: /trunk/libs/regex/test/regress/test_perl_ex.cpp
-===================================================================
---- libs/regex/test/regress/test_perl_ex.cpp (revision 30980)
-+++ libs/regex/test/regress/test_perl_ex.cpp (revision 42674)
-@@ -122,4 +122,15 @@
- TEST_INVALID_REGEX("(?:(a)|b)(?(?<", perl);
- TEST_INVALID_REGEX("(?:(a)|b)(?(?<a", perl);
-+
-+ TEST_INVALID_REGEX("(?(?!#?)+)", perl);
-+ TEST_INVALID_REGEX("(?(?=:-){0})", perl);
-+ TEST_INVALID_REGEX("(?(123){1})", perl);
-+ TEST_INVALID_REGEX("(?(?<=A)*)", perl);
-+ TEST_INVALID_REGEX("(?(?<=A)+)", perl);
-+
-+ TEST_INVALID_REGEX("(?<!*|^)", perl);
-+ TEST_INVALID_REGEX("(?<!*|A)", perl);
-+ TEST_INVALID_REGEX("(?<=?|A)", perl);
-+ TEST_INVALID_REGEX("(?<=*|\\B)", perl);
- }
-
+Index: /trunk/boost/regex/v4/basic_regex_parser.hpp
+===================================================================
+--- boost/regex/v4/basic_regex_parser.hpp (revision 38864)
++++ boost/regex/v4/basic_regex_parser.hpp (revision 42674)
+@@ -785,4 +785,5 @@
+ 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);
+@@ -1870,4 +1871,5 @@
+ {
+ 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)
+ {
+@@ -1878,4 +1880,13 @@
+ {
+ 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;
+ }
+Index: /trunk/libs/regex/test/regress/test_perl_ex.cpp
+===================================================================
+--- libs/regex/test/regress/test_perl_ex.cpp (revision 30980)
++++ libs/regex/test/regress/test_perl_ex.cpp (revision 42674)
+@@ -122,4 +122,15 @@
+ TEST_INVALID_REGEX("(?:(a)|b)(?(?<", perl);
+ TEST_INVALID_REGEX("(?:(a)|b)(?(?<a", perl);
++
++ TEST_INVALID_REGEX("(?(?!#?)+)", perl);
++ TEST_INVALID_REGEX("(?(?=:-){0})", perl);
++ TEST_INVALID_REGEX("(?(123){1})", perl);
++ TEST_INVALID_REGEX("(?(?<=A)*)", perl);
++ TEST_INVALID_REGEX("(?(?<=A)+)", perl);
++
++ TEST_INVALID_REGEX("(?<!*|^)", perl);
++ TEST_INVALID_REGEX("(?<!*|A)", perl);
++ TEST_INVALID_REGEX("(?<=?|A)", perl);
++ TEST_INVALID_REGEX("(?<=*|\\B)", perl);
+ }
+
--
gentoo-commits@g.o mailing list
|