Hello community,

here is the log from the commit of package zlib for openSUSE:11.4
checked in at Mon Jun 6 21:57:00 CEST 2011.



--------
--- old-versions/11.4/all/zlib/zlib.changes     2011-01-09 14:33:39.000000000 
+0100
+++ 11.4/zlib/zlib.changes      2011-06-06 09:30:18.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Jun  6 07:28:59 UTC 2011 - mvysko...@suse.cz
+
+- fix bnc#679345 - zlib segfaults when passing NULL to gzopen
+  * return NULL checks back to gz_open
+
+-------------------------------------------------------------------

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


New:
----
  zlib-1.2.5-gzopen-null-check.patch

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

Other differences:
------------------
++++++ zlib.spec ++++++
--- /var/tmp/diff_new_pack.9PFDA5/_old  2011-06-06 21:56:19.000000000 +0200
+++ /var/tmp/diff_new_pack.9PFDA5/_new  2011-06-06 21:56:19.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package zlib (Version 1.2.5)
+# spec file for package zlib
 #
 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -28,7 +28,7 @@
 %endif
 #
 Version:        1.2.5
-Release:        5
+Release:        9.<RELEASE10>
 Summary:        Data Compression Library
 Url:            http://www.zlib.net/
 Source:         zlib-%{version}.tar.bz2
@@ -40,6 +40,8 @@
 Patch1:         zlib-lfs.patch
 # PATCH-FIX-JENGELH-PARALLEL-MAKE zlib-parallel.patch meiss...@novell.com -- 
shared library links with libz.a
 Patch2:         zlib-parallel.patch
+# PATCH-FIX-UPSTREAM: bnc#679345 --return NULL checks from 1.2.3 removed by 
upstream
+Patch3:         zlib-1.2.5-gzopen-null-check.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  pkgconfig
 
@@ -84,6 +86,7 @@
 %patch0
 %patch1
 %patch2 -p1
+%patch3 -p1
 
 %build
 # Marcus: breaks example64 in 32bit builds.

++++++ zlib-1.2.5-gzopen-null-check.patch ++++++
Index: zlib-1.2.5_git201105121450/gzlib.c
===================================================================
--- zlib-1.2.5_git201105121450.orig/gzlib.c     2011-05-12 16:50:18.000000000 
+0200
+++ zlib-1.2.5_git201105121450/gzlib.c  2011-05-27 10:45:36.467678080 +0200
@@ -91,6 +91,9 @@
 {
     gz_statep state;
 
+    if (!path || !mode)
+        return NULL;
+
     /* allocate gzFile structure to return */
     state = malloc(sizeof(gz_state));
     if (state == NULL)

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



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