From ae2efa88f7751e6bc99395b1177f4c48c6b182a0 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 10 Feb 2009 00:17:25 +1300 Subject: [PATCH] Author: Tim Brown Bug 2595: Out of bounds memory write due to off by one --- helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c index cad7e6f1a1..13adb43f1f 100644 --- a/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c +++ b/helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c @@ -115,7 +115,7 @@ char *gethost_name(void) { } freeaddrinfo(hres); - hostname[MAXHOSTNAMELEN]='\0'; + hostname[MAXHOSTNAMELEN-1]='\0'; return(strdup(hostname)); } -- 2.47.2