Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/libexec/httpd Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/5d233c0aaa7e
branches:  netbsd-8
changeset: 434466:5d233c0aaa7e
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Dec 04 19:44:13 2017 +0000

description:
Pull up following revision(s) (requested by martin in ticket #409):
        libexec/httpd/cgi-bozo.c: revision 1.39
PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.

diffstat:

 libexec/httpd/cgi-bozo.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 8a066ae4d7c2 -r 5d233c0aaa7e libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Mon Dec 04 13:56:05 2017 +0000
+++ b/libexec/httpd/cgi-bozo.c  Mon Dec 04 19:44:13 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.37 2017/01/31 14:36:09 mrg Exp $        */
+/*     $NetBSD: cgi-bozo.c,v 1.37.4.1 2017/12/04 19:44:13 snj Exp $    */
 
 /*     $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $        */
 
@@ -587,6 +587,8 @@
                bozoerr(httpd, 1, "child socketpair failed: %s",
                                strerror(errno));
 
+       *curenvp = 0;
+
        /*
         * We create 2 procs: one to become the CGI, one read from
         * the CGI and output to the network, and this parent will



Home | Main Index | Thread Index | Old Index