Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/a880fe9920dd
branches:  netbsd-7-0
changeset: 801415:a880fe9920dd
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jan 03 20:30:06 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 44a390a6018d -r a880fe9920dd libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c  Wed Jan 03 20:17:36 2018 +0000
+++ b/libexec/httpd/cgi-bozo.c  Wed Jan 03 20:30:06 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgi-bozo.c,v 1.25.2.2.2.4 2017/02/12 21:59:44 snj Exp $        */
+/*     $NetBSD: cgi-bozo.c,v 1.25.2.2.2.5 2018/01/03 20:30:06 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