Patch Fix_insufficient_memory_allocation for PECL Bug #73103
Patch version 2016-09-17 16:20 UTC
Return to Bug #73103 |
Download this patch
Patch Revisions:
Developer: tvdijen@gmail.com
--- krb5-1.1.0/negotiate_auth.c 2016-07-16 16:43:59.000000000 +0200
+++ krb5-test2/negotiate_auth.c 2016-09-17 18:18:26.773523212 +0200
@@ -364,7 +364,7 @@
sapi_header_line ctr = {0};
- ctr.line = emalloc(sizeof("WWW-Authenticate: ")+encoded->len);
+ ctr.line = emalloc(sizeof("WWW-Authenticate: ") + encoded->len + 1);
strcpy(ctr.line, "WWW-Authenticate: ");
strcpy(ctr.line + strlen("WWW-Authenticate: "), encoded->val);
ctr.response_code = 200;
|