summaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_env-fix-overflow.patch
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2014-01-14 00:30:36 -0800
committerSteve Langasek <vorlon@debian.org>2019-01-08 22:11:51 -0800
commit1673fdd3756f59f0886cb3d0d594ff71ed3b1f40 (patch)
tree9cc5f635f1c345bd491ffa1aa33c15c32947ae02 /debian/patches-applied/pam_env-fix-overflow.patch
parent18ad8104e674ec8e1fb74d15a248680e51044854 (diff)
Refresh patches
Diffstat (limited to 'debian/patches-applied/pam_env-fix-overflow.patch')
-rw-r--r--debian/patches-applied/pam_env-fix-overflow.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/debian/patches-applied/pam_env-fix-overflow.patch b/debian/patches-applied/pam_env-fix-overflow.patch
deleted file mode 100644
index 7797359a..00000000
--- a/debian/patches-applied/pam_env-fix-overflow.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Description: correctly count leading whitespace when parsing environment
- file (CVE-2011-3148).
-Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/pam/+bug/874469
-Author: Kees Cook <kees@debian.org>
-
-Index: pam-debian/modules/pam_env/pam_env.c
-===================================================================
---- pam-debian.orig/modules/pam_env/pam_env.c 2011-10-14 10:51:30.973701139 -0700
-+++ pam-debian/modules/pam_env/pam_env.c 2011-10-14 12:32:25.578188004 -0700
-@@ -287,6 +287,7 @@
- char *p = buffer;
- char *s, *os;
- int used = 0;
-+ int whitespace;
-
- /* loop broken with a 'break' when a non-'\\n' ended line is read */
-
-@@ -309,8 +310,10 @@
-
- /* skip leading spaces --- line may be blank */
-
-- s = p + strspn(p, " \n\t");
-+ whitespace = strspn(p, " \n\t");
-+ s = p + whitespace;
- if (*s && (*s != '#')) {
-+ used += whitespace;
- os = s;
-
- /*