Files
pkgsrc-ng/net/nagios-base/patches/patch-cgi_histogram.c
2016-01-21 23:40:00 +01:00

15 lines
454 B
C

$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;
}