Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/3a8d2b69a097
branches:  netbsd-7-1
changeset: 800830:3a8d2b69a097
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jan 03 20:30:07 2018 +0000

description:
Pull up following revision(s) (requested by martin in ticket #1533):
        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 37cc537f298b -r 3a8d2b69a097 libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Wed Jan 03 20:17:38 2018 +0000
+++ b/libexec/httpd/cgi-bozo.c  Wed Jan 03 20:30:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.25.2.7 2017/02/12 22:07:17 snj Exp $    */
+/*     $NetBSD: cgi-bozo.c,v 1.25.2.7.2.1 2018/01/03 20:30:07 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