History log of /netbsd-src/libexec/httpd/cgi-bozo.c (Results 1 – 25 of 56)
Revision Date Author Comments
# eb49cefa 20-Sep-2023 shm <shm@NetBSD.org>

Removed unnecessary comment

Thanks leot@ for pointing this out


# 086f2d10 20-Sep-2023 shm <shm@NetBSD.org>

Remove unused variable (bp)


# dc0342a2 08-Apr-2021 rillig <rillig@NetBSD.org>

bozohttpd: fix argument type for functions from <ctype.h>

Found by the recently added check to lint (message 342).

ok mrg@


# 9402120e 27-Feb-2021 mrg <mrg@NetBSD.org>

belated call version 20210211 after previous memory leak fix.


# 12d8621d 11-Feb-2021 mrg <mrg@NetBSD.org>

changes in bozohttpd 20210210:
o fix various NULL derefs from malformed headers. mostly from
<emily@ingalls.rocks>.


# 4864410b 15-Oct-2020 mrg <mrg@NetBSD.org>

various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix

various updates from <henrik@gulbra.net> / freebsd. the list from Henrik:

bozohttpd.8:
o Added -d flag to the man page
o Moved -E flag in man page to keep alphabetic order
o Grammar fix for description of -E flag in man page
o Moved a word in the man description for the -f flag
o Made -f imply -b as a backwards-compatible shortcut
o Updated man description of -n to mention Lua scripts
o Moved -z below -Z to keep the uppercase options first

bozohttpd.c:
o Removed obsolete comment about ~user missing cgi-bin support
o Removed "/* ARGSUSED */" lines; was that a macro or a reminder?
o Added USE_ARG macro call for sig, which was otherwise not used
o Added USE_ARG macro call for msg (only used if debug is enabled)

bozohttpd.h:
o Fixed typo in the include guard (BOZOHTTOPD_H_ -> BOZOHTTPD_H_)
o Renamed have_all to have_core; it didn't mean "all" options

content-bozo.c:
o Added USE_ARG macro call for signo, which was otherwise not used
o Made -f imply -b as a backwards-compatible shortcut

main.c:
o Simplified -b text to be symmetric with that for the -f option
o Updated -C text to make "suffix" explicit; it's better than "arg"
o Changed to only show the -E description if have_user is true
o Always show the -e option, which incorrectly used the -E logic
o Renamed have_all to have_core; it didn't mean "all" options
o Added three missing tabs for the description of the -G option
o Updated -L text to make "prefix" explicit; it's better than "arg"
o Updated -M text to make "suffix" explicit; it's slightly better
o Added a previously missing description for the -n option
o Documented the otherwise obscure valid types for the -T option
o Shortened "username" to "user" to match the actual help text
o Moved handling of -c below that for -C to standardize the order
o Broke the enabling test for -C into two lines for consistency
o Inverted the enabling test for -E; this is what was meant, right?
o Removed the enabling test for -e, which should always be enabled

ssl-bozo.c:
o Added USE_ARG for httpd, which is not used if SSL has been excluded

show more ...


# 0acfa6ca 20-Aug-2020 spz <spz@NetBSD.org>

send close_notify for the ssl connection before closing the TCP connection
Thanks to Dr. Thomas Orgis for reporting the issue.


# e563647e 06-Dec-2019 mrg <mrg@NetBSD.org>

remove some XXX comments. one isn't relevant, and the other two
have been incorrect for a long while now.


# 9e275c0f 29-Mar-2019 martin <martin@NetBSD.org>

Account for cgihandler being set when counting the number of CGI environment
headers we are about to set. Avoids an assertion failure (and overruninng
the array) later.


# 9b91523e 17-Jan-2019 mrg <mrg@NetBSD.org>

- call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table

- call this 20190116
- adjust the directory indexing again:
- don't include "index.html" in html headers
- additional escaping of names
- re-add top/bottom borders
- adds an aquamarine table header
- Zebra-stripes table rows using CSS instead of code
all from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>

show more ...


# 9c080599 17-Jan-2019 mrg <mrg@NetBSD.org>

- fix CGI '+' param and error handling.
- remove unused parameter to daemon_poll_err().

both from "Rajeev V. Pillai" <rajeev_v_pillai@yahoo.com>


# 47273da7 24-Nov-2018 christos <christos@NetBSD.org>

appease lint


# ed71d0d5 23-Nov-2018 mrg <mrg@NetBSD.org>

minor style fixes. simplify bozo_match_content_map().


# 7cb0de5d 22-Nov-2018 mrg <mrg@NetBSD.org>

add an assert() check on array bounds.


# 4cfb2183 22-Nov-2018 mrg <mrg@NetBSD.org>

many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap()

many clean ups:
- keep a list of special files and their human names
- remove (void) casts on bozo_http_error()
- fix a few more misuses of bozo_http_error()
- rename check_mapping() to check_remap() and perform some CSE
- switch away from ``%s'' to '%s'
- remove a bunch of #ifdef using new have_feature defines

show more ...


# 3230a9a3 20-Nov-2018 mrg <mrg@NetBSD.org>

from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fi

from CHANGES:

o reduce default timeouts, and add expand timeouts to handle the
initial line, each header, and the total time spent
o add -T option to expose new timeout settings
o minor RFC fixes related to timeout handling responses

old timeouts:
60 seconds for initial request like, 60 seconds per header line,
and no whole timeout (though the recent total header size changes
do introduce one that would be about 11 hours.)
new timeouts:
30 seconds for initial request like, 10 seconds per header line,
and a total request time of 600 seconds.


the new global timeout is implemented using CLOCK_MONOTONIC, with
a fallback to CLOCK_REALTIME if monotonic time is unavailable.


reject multiple Host: headers. besides being protocol standard,
this closes one additional memory leak found by JP. add a simple
test to check this.


clean up option and usage handling some.

show more ...


# e2c37278 18-Nov-2018 mrg <mrg@NetBSD.org>

use __func__ in debug().


# e9e7c8e3 28-Nov-2017 martin <martin@NetBSD.org>

PR bin/52194: bozohttpd fails to exec scripts via the -C mechanism
sometimes with EFAULT due to not NULL terminated environment.


# 803cb099 05-Oct-2017 mrg <mrg@NetBSD.org>

s/u_int/unsigned/.

from Jan Danielsson. increases/fixes portability.


# 630f2c0b 31-Jan-2017 mrg <mrg@NetBSD.org>

call this bozohttpd 20170201.


# 2c19cec6 31-Jan-2017 mrg <mrg@NetBSD.org>

- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the test

- fix a bug in cgi processing. from Dennis Lindroos.
- add a testcase for this, and expand test-simple to handle additional
args to bozohttpd for eg, cgi-bin setting.
- fix objdir bugs in the testsuite.

show more ...


# f7945701 24-Apr-2016 christos <christos@NetBSD.org>

CID 1358679: Fix memory leak.
XXX: pullup 7


# 0a7cdc80 15-Apr-2016 mrg <mrg@NetBSD.org>

use %zu instead of %lu for size_t.


# 27da98ff 15-Apr-2016 mrg <mrg@NetBSD.org>

updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option s

updates and bozohttpd 20160415:
o add search-word support for CGI
o fix a security issue in CGI suffix handler support which would
allow remote code execution, from shm@netbsd.org
o -C option supports now CGI scripts only

show more ...


# 614a8b67 31-Dec-2015 mrg <mrg@NetBSD.org>

redo the fix for rev 1.26 - instead of getting a new string wrong,
just delay the free until the parent has finished using them.
also, free query as well.

fixes PR#50374.


123