]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: connection: fix memory corruption when building a proxy v2 header
authorDave McCowan <11235david@gmail.com>
Thu, 17 Jul 2014 18:34:01 +0000 (14:34 -0400)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jul 2014 19:00:53 +0000 (21:00 +0200)
commit77d1f0143e210c13ee8ec6aaf6b3150fa4ce6c5b
treea8feab6118fc8393f619f02ebccaa950b3ff5f20
parent09448f7d7cf5aaa1f4982c5d4e5935b59c046430
BUG/MEDIUM: connection: fix memory corruption when building a proxy v2 header

Use temporary trash chunk, instead of global trash chunk in
make_proxy_line_v2() to avoid memory overwrite.

This fix must also be backported to 1.5.
src/connection.c