]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: rework chunk-size parser
authorWilly Tarreau <w@1wt.eu>
Sat, 26 Dec 2009 12:56:06 +0000 (13:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 26 Dec 2009 12:56:06 +0000 (13:56 +0100)
commit115acb975521ae2e548a19840b77ef32ffaab98a
tree4f57e96fc575794603403c12b317827491de08f8
parent0394594b067f6383d56e444396e98fa40fbbc3a3
[MEDIUM] http: rework chunk-size parser

Chunked encoding can be slightly more complex than what was implemented.
Specifically, it supports some optional extensions that were not parsed
till now if present, and would have caused an error to be returned.

Also, now we enforce check for too large values in chunk sizes in order
to ensure we never overflow.

Last, we're now able to return a request error if we can't read the
chunk size because the buffer is already full.
src/proto_http.c