]> git.pld-linux.org Git - packages/sudo.git/commitdiff
- fix free unallocated path. bug 452
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 28 Mar 2011 09:31:42 +0000 (09:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bug-452.patch -> 1.1
    sudo.spec -> 1.179

bug-452.patch [new file with mode: 0644]
sudo.spec

diff --git a/bug-452.patch b/bug-452.patch
new file mode 100644 (file)
index 0000000..a301687
--- /dev/null
@@ -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));
index 52ad8606ae72696148ee3888fb0cfa2fe3f152ce..2951c3089e18401ff2f89ff1d2aab33ced28c409 100644 (file)
--- a/sudo.spec
+++ b/sudo.spec
@@ -21,7 +21,7 @@ Summary(ru.UTF-8):    Позволяет определенным пользова
 Summary(uk.UTF-8):     Дозволяє вказаним користувачам виконувати команди від імені root
 Name:          sudo
 Version:       1.7.5
-Release:       1
+Release:       2
 Epoch:         1
 License:       BSD
 Group:         Applications/System
@@ -32,6 +32,7 @@ Source2:      %{name}-i.pamd
 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
@@ -144,6 +145,7 @@ cp acinclude.m4 acinclude.m4.orig
 
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__mv} install-sh install-custom-sh
This page took 0.203171 seconds and 4 git commands to generate.