]> git.kaiwu.me - haproxy.git/commit
BUG/MAJOR: http/sample: use a static buffer for raw -> htx conversion
authorRichard Russo <russor@whatsapp.com>
Wed, 31 Jul 2019 18:45:56 +0000 (11:45 -0700)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Aug 2019 09:35:29 +0000 (11:35 +0200)
commit458eafb36df88932a02d1ce7ca31832abf11b8b3
tree7857216e4200e1878d7302fd2b2aea105ffe9589
parent0a52c17f819a5b0a17718b605bdd990b9e2b58e6
BUG/MAJOR: http/sample: use a static buffer for raw -> htx conversion

Multiple calls to smp_fetch_fhdr use the header context to keep track of
header parsing position; however, when using header sampling on a raw
connection, the raw buffer is converted into an HTX structure each time, and
this was done in the trash areas; so the block reference would be invalid on
subsequent calls.

This patch must be backported to 2.0 and 1.9.
src/http_fetch.c