summaryrefslogtreecommitdiff
path: root/debian/patches/99_CVE-2011-4862.patch
blob: 4bb677e536d6e55b44ff68a186ceda876787bc22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: git/libtelnet/encrypt.c
===================================================================
--- git.orig/libtelnet/encrypt.c	2011-12-25 16:51:52.000000000 +0100
+++ git/libtelnet/encrypt.c	2011-12-25 16:58:22.441175233 +0100
@@ -794,6 +794,9 @@
   int dir = kp->dir;
   register int ret = 0;
 
+   if (len > MAXKEYLEN)
+     len = MAXKEYLEN;
+
   if (!(ep = (*kp->getcrypt) (*kp->modep)))
     {
       if (len == 0)