File curl-ntlm.patch of Package compat-libcurl2
--- lib/http_ntlm.c.orig 2005-02-22 10:29:22.000000000 +0100
+++ lib/http_ntlm.c 2005-02-22 10:30:20.681198149 +0100
@@ -103,13 +103,15 @@
header++;
if(checkprefix("NTLM", header)) {
- unsigned char buffer[256];
header += strlen("NTLM");
while(*header && isspace((int)*header))
header++;
if(*header) {
+ unsigned char *buffer = (unsigned char *)malloc(strlen(header));
+ if (buffer == NULL)
+ return CURLNTLM_BAD;
/* We got a type-2 message here:
Index Description Content
@@ -135,6 +137,8 @@
memcpy(ntlm->nonce, &buffer[24], 8);
/* at index decimal 20, there's a 32bit NTLM flag field */
+
+ free(buffer);
}
else {