Accepting request 71640 from Base:System
- fix bnc#679345: zlib segfaults when passing NULL to gzopen * return NULL checks back to gz_open OBS-URL: https://build.opensuse.org/request/show/71640 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=31
This commit is contained in:
parent
f0884f8cb5
commit
7edff8842c
14
zlib-1.2.5-gzopen-null-check.patch
Normal file
14
zlib-1.2.5-gzopen-null-check.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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)
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 27 09:13:31 UTC 2011 - mvyskocil@suse.cz
|
||||||
|
|
||||||
|
- fix bnc#679345: zlib segfaults when passing NULL to gzopen
|
||||||
|
* return NULL checks back to gz_open
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 12 20:02:26 UTC 2011 - crrodriguez@opensuse.org
|
Thu May 12 20:02:26 UTC 2011 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -41,6 +41,8 @@ Patch0: zlib-1.2.2-format.patch
|
|||||||
Patch1: zlib-lfs.patch
|
Patch1: zlib-lfs.patch
|
||||||
# PATCH-FIX-JENGELH-PARALLEL-MAKE zlib-parallel.patch meissner@novell.com -- shared library links with libz.a
|
# PATCH-FIX-JENGELH-PARALLEL-MAKE zlib-parallel.patch meissner@novell.com -- shared library links with libz.a
|
||||||
Patch2: zlib-parallel.patch
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
@ -85,6 +87,7 @@ libraries.
|
|||||||
%patch0
|
%patch0
|
||||||
%patch1
|
%patch1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Marcus: breaks example64 in 32bit builds.
|
# Marcus: breaks example64 in 32bit builds.
|
||||||
|
Loading…
Reference in New Issue
Block a user