packages: sudo/sudo.spec, sudo/bug-452.patch (NEW) - fix free unallocated p...

glen glen at pld-linux.org
Mon Mar 28 11:31:47 CEST 2011


Author: glen                         Date: Mon Mar 28 09:31:47 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix free unallocated path. bug 452

---- Files affected:
packages/sudo:
   sudo.spec (1.178 -> 1.179) , bug-452.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/sudo/sudo.spec
diff -u packages/sudo/sudo.spec:1.178 packages/sudo/sudo.spec:1.179
--- packages/sudo/sudo.spec:1.178	Sun Mar  6 10:40:52 2011
+++ packages/sudo/sudo.spec	Mon Mar 28 11:31:42 2011
@@ -22,7 +22,7 @@
 Summary(uk.UTF-8):	Дозволяє вказаним користувачам виконувати команди від імені root
 Name:		sudo
 Version:	1.7.5
-Release:	1
+Release:	2
 Epoch:		1
 License:	BSD
 Group:		Applications/System
@@ -33,6 +33,7 @@
 Source3:	%{name}.logrotate
 Patch0:		%{name}-libtool.patch
 Patch1:		%{name}-env.patch
+Patch2:		bug-452.patch
 URL:		http://www.sudo.ws/sudo/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake
@@ -145,6 +146,7 @@
 
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__mv} install-sh install-custom-sh
@@ -257,6 +259,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.179  2011/03/28 09:31:42  glen
+- fix free unallocated path. bug 452
+
 Revision 1.178  2011/03/06 09:40:52  glen
 - up to 1.7.5
 - package default /var/log/sudo-io dir (for log_input/log_output io redirection)

================================================================
Index: packages/sudo/bug-452.patch
diff -u /dev/null packages/sudo/bug-452.patch:1.1
--- /dev/null	Mon Mar 28 11:31:47 2011
+++ packages/sudo/bug-452.patch	Mon Mar 28 11:31:42 2011
@@ -0,0 +1,22 @@
+diff -r 8e6e810e89ce toke.c
+--- a/toke.c	Wed Mar 23 16:04:17 2011 -0400
++++ b/toke.c	Sun Mar 27 09:16:26 2011 -0400
+@@ -3306,6 +3306,7 @@
+ 	}
+ 	if (stat(path, &sb) != 0 || !S_ISREG(sb.st_mode)) {
+ 	    efree(path);
++	    path = NULL;
+ 	    continue;
+ 	}
+ 	pl = malloc(sizeof(*pl));
+diff -r 8e6e810e89ce toke.l
+--- a/toke.l	Wed Mar 23 16:04:17 2011 -0400
++++ b/toke.l	Sun Mar 27 09:16:26 2011 -0400
+@@ -639,6 +639,7 @@
+ 	}
+ 	if (stat(path, &sb) != 0 || !S_ISREG(sb.st_mode)) {
+ 	    efree(path);
++	    path = NULL;
+ 	    continue;
+ 	}
+ 	pl = malloc(sizeof(*pl));
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sudo/sudo.spec?r1=1.178&r2=1.179&f=u



More information about the pld-cvs-commit mailing list