Patch a potential buffer overflow from DFN-CERT#34784.

PR:		6851
Submitted by:	David Kelly <dkelly@nebula.tbe.com>
This commit is contained in:
Steve Price 1998-08-09 00:10:45 +00:00
parent ec0192a303
commit 5a5fbb4af2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=12343

View file

@ -0,0 +1,12 @@
--- Daemon/Implementation/CGIParse.c.orig Wed Jun 3 12:38:15 1998
+++ Daemon/Implementation/CGIParse.c Wed Jun 3 12:38:41 1998
@@ -293,7 +293,8 @@
*cur = 0;
if (init) {
- printf("QUERY_STRING='%s'; export QUERY_STRING\n", query_string);
+ printf("QUERY_STRING='%s'; export QUERY_STRING\n",
+ sh_escape(query_string) );
exit(0);
}
}