http: unit tests for overflow and bad lengths
commitff37b3fe17f04db80e31cb070e3ce8fa1f9eae39
authorEric Wong <normalperson@yhbt.net>
Sun, 9 Aug 2009 10:41:34 +0000 (9 03:41 -0700)
committerEric Wong <normalperson@yhbt.net>
Sun, 9 Aug 2009 10:43:49 +0000 (9 03:43 -0700)
tree54578226bd260fa9d9a82959f6895f3719aa4b82
parent81026ea66279695206ea53287427c05281662572
http: unit tests for overflow and bad lengths

We're bound by the maximum value of off_t when handling
input bodies (we need to buffer to disk).  Also ensure
we stop bad clients that send us unparseable lengths.
ext/unicorn_http/unicorn_http.rl
test/unit/test_http_parser_ng.rb