]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] stream_sock: wrong max computation on recv
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Dec 2009 16:36:37 +0000 (17:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Dec 2009 16:36:37 +0000 (17:36 +0100)
commit864e8256ec767826964f0c8b27d468a1ea1ed9aa
treeb281626201fb56ada26e43667a277585882b604c
parent58cc872848314ef2ecbaf9808ce4bd5f5b20bb69
[BUG] stream_sock: wrong max computation on recv

Since the introduction of the automatic sizing of buffers during reads,
a bug appeared where the max size could be negative, causing large
chunks of memory to be overwritten during recv() calls if a read pointer
was already past the buffer's limit.
src/stream_sock.c