blob: 3432691035d827187d0633bd40dd5c3636578f3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$NetBSD: patch-cgi_config.c,v 1.1 2014/04/02 10:22:37 he Exp $
Fix off-by-one vulnerabilities, ref. http://secunia.com/advisories/55976/
--- cgi/config.c.orig 2013-02-27 01:37:32.000000000 +0000
+++ cgi/config.c
@@ -386,7 +386,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;
}
|