packages: zlib/zlib.spec, zlib/minizip-1.2.3-malloc.patch (NEW) - rel 3; mi...

arekm arekm at pld-linux.org
Fri Oct 9 19:33:32 CEST 2009


Author: arekm                        Date: Fri Oct  9 17:33:32 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 3; minizip malloc check

---- Files affected:
packages/zlib:
   zlib.spec (1.112 -> 1.113) , minizip-1.2.3-malloc.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/zlib/zlib.spec
diff -u packages/zlib/zlib.spec:1.112 packages/zlib/zlib.spec:1.113
--- packages/zlib/zlib.spec:1.112	Fri Oct  9 01:25:18 2009
+++ packages/zlib/zlib.spec	Fri Oct  9 19:33:27 2009
@@ -32,8 +32,9 @@
 Summary(uk.UTF-8):	Бібліотека для компресії та декомпресії
 Name:		zlib
 Version:	1.2.3.3
+Release:	3
 Patch0:		minizip-autotools.patch
-Release:	2
+Patch1:		minizip-1.2.3-malloc.patch
 License:	BSD
 Group:		Libraries
 Source0:	http://www.zlib.net/current/beta/%{name}-%{version}.tar.gz
@@ -277,6 +278,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %if %{with asmopt}
 %ifarch i686 pentium3 pentium4 athlon
@@ -375,6 +377,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.113  2009/10/09 17:33:27  arekm
+- rel 3; minizip malloc check
+
 Revision 1.112  2009/10/08 23:25:18  emes
 - reverted last commit
 

================================================================
Index: packages/zlib/minizip-1.2.3-malloc.patch
diff -u /dev/null packages/zlib/minizip-1.2.3-malloc.patch:1.1
--- /dev/null	Fri Oct  9 19:33:32 2009
+++ packages/zlib/minizip-1.2.3-malloc.patch	Fri Oct  9 19:33:27 2009
@@ -0,0 +1,15 @@
+diff -up zlib-1.2.3/contrib/minizip/miniunz.c.pom zlib-1.2.3/contrib/minizip/miniunz.c
+--- zlib-1.2.3/contrib/minizip/miniunz.c.pom	2005-07-12 20:08:40.000000000 +0200
++++ zlib-1.2.3/contrib/minizip/miniunz.c	2008-12-01 11:12:23.000000000 +0100
+@@ -112,6 +112,11 @@ int makedir (newdir)
+     return 0;
+ 
+   buffer = (char*)malloc(len+1);
++  if (buffer==NULL)
++  {
++    printf("Error allocating memory\n");
++    return UNZ_INTERNALERROR;
++  }                          
+   strcpy(buffer,newdir);
+ 
+   if (buffer[len-1] == '/') {
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/zlib/zlib.spec?r1=1.112&r2=1.113&f=u



More information about the pld-cvs-commit mailing list