summaryrefslogtreecommitdiff
path: root/net/nagios-base/patches/patch-cgi_status.c
blob: 6d377bc7c15ea7e88c8b7d682a024542620a334a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-cgi_status.c,v 1.1 2014/04/02 10:22:37 he Exp $

Fix off-by-one vulnerabilities, ref. http://secunia.com/advisories/55976/

--- cgi/status.c.orig	2013-03-09 21:46:35.000000000 +0000
+++ cgi/status.c
@@ -600,7 +600,6 @@ int process_cgivars(void) {
 
 		/* do some basic length checking on the variable identifier to prevent buffer overflows */
 		if(strlen(variables[x]) >= MAX_INPUT_BUFFER - 1) {
-			x++;
 			continue;
 			}