]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Tim Brown <squid-cache@machine.org.uk>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Feb 2009 11:17:25 +0000 (00:17 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Feb 2009 11:17:25 +0000 (00:17 +1300)
Bug 2595: Out of bounds memory write due to off by one

helpers/negotiate_auth/squid_kerb_auth/squid_kerb_auth.c

index cad7e6f1a161f383fbf74f656b83bd1c880a7ae2..13adb43f1fa2fcbc26a6dcfcbabd9e992255ab2f 100644 (file)
@@ -115,7 +115,7 @@ char *gethost_name(void) {
   }
 
   freeaddrinfo(hres);
-  hostname[MAXHOSTNAMELEN]='\0';
+  hostname[MAXHOSTNAMELEN-1]='\0';
   return(strdup(hostname));
 }