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

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

--- cgi/histogram.c.orig	2011-11-21 20:51:52.000000000 +0000
+++ cgi/histogram.c
@@ -1069,7 +1069,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;
 			}