Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37559496
en ru br
Репозитории ALT
S:1.21.4-alt2
5.1: 1.12-alt1
4.1: 1.11.1-alt1
4.0: 1.10.2-alt3
3.0: 1.10.2-alt1
www.altlinux.org/Changes

Группа :: Сети/WWW
Пакет: wget

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: wget-1.10.1-alt-ntlm-buffer.patch
Скачать


--- wget-1.10.1/src/http-ntlm.c.org	2005-10-13 15:29:07 +0300
+++ wget-1.10.1/src/http-ntlm.c	2005-10-13 15:32:16 +0300
@@ -314,7 +314,7 @@
   int domoff;  /* domain name offset */
   int size;
   char *base64;
-  char ntlmbuf[256]; /* enough, unless the host/domain is very long */
+  char *ntlmbuf;
 
   /* point to the address of the pointer that holds the string to sent to the
      server, which is for a plain host or for a HTTP proxy */
@@ -334,6 +334,7 @@
   default: /* for the weird cases we (re)start here */
     hostoff = 32;
     domoff = hostoff + hostlen;
+    ntlmbuf = (char *)alloca( 32 + hostlen + domlen);
 
     DEBUGP (("Creating a type-1 NTLM message.\n"));
     
@@ -437,6 +438,8 @@
       usr = user;
     userlen = strlen(usr);
 
+    ntlmbuf = (char *)alloca( 64 + domlen + userlen);
+
     mkhash(passwd, &ntlm->nonce[0], lmresp
 #ifdef USE_NTRESPONSES
            , ntresp
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin