Hello community,

here is the log from the commit of package libapr1 for openSUSE:11.4
checked in at Tue Jul 26 17:23:16 CEST 2011.



--------
--- old-versions/11.4/all/libapr1/libapr1.changes       2010-09-06 
23:40:40.000000000 +0200
+++ 11.4/libapr1/libapr1.changes        2011-07-26 15:47:31.000000000 +0200
@@ -1,0 +2,7 @@
+Tue Jul 26 15:32:48 CEST 2011 - dr...@suse.de
+
+- libapr1-apr_fnmatch_c-CVE-2011-0419.patch and
+  libapr1-apr_fnmatch_c-CVE-2011-1928.patch fix CVE-2011-0419 and
+  CVE-2011-1928: fnmatch() mem and CPU exhaustion DoS. bnc#693778
+
+-------------------------------------------------------------------

Package does not exist at destination yet. Using Fallback 
old-versions/11.4/all/libapr1
Destination is old-versions/11.4/UPDATES/all/libapr1
calling whatdependson for 11.4-i586


New:
----
  libapr1-apr_fnmatch_c-CVE-2011-0419.patch
  libapr1-apr_fnmatch_c-CVE-2011-1928.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libapr1.spec ++++++
--- /var/tmp/diff_new_pack.k2TLxg/_old  2011-07-26 17:22:53.000000000 +0200
+++ /var/tmp/diff_new_pack.k2TLxg/_new  2011-07-26 17:22:53.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package libapr1 (Version 1.4.2)
+# spec file for package libapr1
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -37,12 +37,14 @@
 %endif
 #
 Version:        1.4.2
-Release:        2
+Release:        4.<RELEASE5>
 Summary:        Apache Portable Runtime (APR) Library
 Source:         http://www.apache.org/dist/apr/apr-%{version}.tar.bz2
 Source2:        baselibs.conf
 Patch1:         string-compare.diff
 Patch3:         apr-1.3.0-testshm-apr_shm_remove.patch
+Patch4:         libapr1-apr_fnmatch_c-CVE-2011-0419.patch
+Patch5:         libapr1-apr_fnmatch_c-CVE-2011-1928.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %define aprver 1
 %define installbuilddir %{_libdir}/apr-%{aprver}/build
@@ -93,6 +95,8 @@
 %setup -n apr-%{version}
 %patch1
 %patch3 -p1
+%patch4 -p0
+%patch5 -p0
 #
 # workaround for ugly bug 400488
 # Xen kernel on sles9 x86_64 is set up to behave different than all other 
kernels

++++++ libapr1-apr_fnmatch_c-CVE-2011-0419.patch ++++++
++++ 628 lines (skipped)

++++++ libapr1-apr_fnmatch_c-CVE-2011-1928.patch ++++++
diff -ruN ../apr-1.3.3.orig/strings/apr_fnmatch.c ./strings/apr_fnmatch.c
--- ../apr-1.3.3.orig/strings/apr_fnmatch.c     2011-06-24 14:52:09.000000000 
+0200
+++ ./strings/apr_fnmatch.c     2011-06-24 14:53:14.000000000 +0200
@@ -195,7 +195,10 @@
     const char *mismatch = NULL;
     int matchlen = 0;
 
-    while (*pattern)
+    if (*pattern == '*')
+        goto firstsegment;
+
+    while (*pattern && *string)
     {
         /* Match balanced slashes, starting a new segment pattern
          */
@@ -206,6 +209,7 @@
             ++string;
         }            
 
+firstsegment:
         /* At the beginning of each segment, validate leading period behavior.
          */
         if ((flags & APR_FNM_PERIOD) && (*string == '.'))
@@ -360,9 +364,9 @@
             return APR_FNM_NOMATCH;
     }
 
-    /* pattern is at EOS; if string is also, declare success
+    /* Where both pattern and string are at EOS, declare success
      */
-    if (!*string)
+    if (!*string && !*pattern)
         return 0;
 
     /* pattern didn't match to the end of string */

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to