You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/heimdal/files/CVE-2011-4862.patch

17 lines
456 B

Stolen shamelessly from FreeBSD
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;