aboutsummaryrefslogtreecommitdiffstats
path: root/main/heimdal/telnetd.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-10 14:54:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-10 14:54:04 +0000
commitf81ee55cee797b4203340cebc3f15691ac93faeb (patch)
treea6c1a11aff21da411d6574ad6a794b119fafce92 /main/heimdal/telnetd.patch
parent2a47152a439b9747205655ca71541a917bbc6157 (diff)
downloadaports-f81ee55cee797b4203340cebc3f15691ac93faeb.tar.bz2
aports-f81ee55cee797b4203340cebc3f15691ac93faeb.tar.xz
main/heimdal: security fix (CVE-2011-4862)
fixes #912
Diffstat (limited to 'main/heimdal/telnetd.patch')
-rw-r--r--main/heimdal/telnetd.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/heimdal/telnetd.patch b/main/heimdal/telnetd.patch
new file mode 100644
index 0000000000..9c4d10386c
--- /dev/null
+++ b/main/heimdal/telnetd.patch
@@ -0,0 +1,14 @@
+Index: crypto/heimdal/appl/telnet/libtelnet/encrypt.c
+===================================================================
+--- appl/telnet/libtelnet/encrypt.c (revision 228798)
++++ appl/telnet/libtelnet/encrypt.c (working copy)
+@@ -736,6 +736,9 @@
+ int dir = kp->dir;
+ int ret = 0;
+
++ if (len > MAXKEYLEN)
++ len = MAXKEYLEN;
++
+ if (!(ep = (*kp->getcrypt)(*kp->modep))) {
+ if (len == 0)
+ return;