[#] http://marc.info/?l=openbsd-cvs&m=140630440618870&w=2
openbsd-cvs(obsdave,2) — All
2014-07-27 09:43:06


CVSROOT: /cvs
Module name: src
Changes by: schwarze@cvs.openbsd.org 2014/07/25 10:06:19

Modified files:
usr.bin/mandoc : cgi.c

Log message:
Rewrite http_parse() completely:
1. Make sure the last occurrence of each key is used, even if
it is empty, in which case it resets the value to the default.
2. When there is an HTTP encoding error, skip the affected
key-value pair only, but not all subsequent key-value pairs.
3. Do not modify a string returned from getenv(3).
4. Do not assume the NULL pointer is all null bits.