]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: avoid copying output over itself in zero-copy
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Jan 2019 19:43:53 +0000 (20:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Jan 2019 19:43:53 +0000 (20:43 +0100)
commitb57af617c06347af2284ac7949a7ddd7e52b4e41
treef4f454a715f3b8f1fe8ba6982562464c287c030e
parentafe57846bfb2edfb0db53f942b9500d090377c54
BUG/MINOR: mux-h1: avoid copying output over itself in zero-copy

It's almost funny but one side effect of the latest zero-copy changes made
to mux-h1 resulted in the temporary buffer being copied over itself at the
exact same location. This has no impact except slowing down operations and
irritating valgrind. The cause is an incorrect pointer check after the
alignment optimizations were made.

This needs to be backported to 1.9.

Reported-by: Tim Duesterhus <tim@bastelstu.be>
src/mux_h1.c