mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-07 19:30:47 -04:00
15 lines
442 B
C
15 lines
442 B
C
$NetBSD: patch-cgi_avail.c,v 1.1 2014/04/02 10:22:37 he Exp $
|
|
|
|
Fix off-by-one vulnerabilities, ref. http://secunia.com/advisories/55976/
|
|
|
|
--- cgi/avail.c.orig 2012-02-03 15:23:14.000000000 +0000
|
|
+++ cgi/avail.c
|
|
@@ -1141,7 +1141,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;
|
|
}
|
|
|