CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2015/05/17 16:49:03
Modified files:
regress/usr.sbin/relayd: LICENSE Relayd.pm funcs.pl
Added files:
regress/usr.sbin/relayd: args-http-callback.pl
args-http-chunked-callback.pl
args-http-chunked-put.pl
args-http-headline-callback.pl
args-https-callback.pl
args-https-chunked-callback.pl
args-https-chunked-put.pl
args-https-headline-callback.pl
Log message:
Add test cases for a crash reported by Bertrand PROVOST. When a
HTTP client writes multiple requests or chunks in a single transfer,
relayd invokes the libevent callback manually for the next data.
If the callback closes the session, this results in an use after
free.
Test an invalid second request method, test an invalid header line
in the second PUT request, test an invalid second chunked length
for a PUT request. Also test multiple valid HTTP 1.1 PUT requests
with chunked body.
To detect crashes of relayd, start it with "prefork 1" and grep for
"lost child" log messages. Unfortunately only the first child is
monitored by the parent.