]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: chunk: adding NULL check to chunk_dup allocation.
authorDavid Carlier <devnexen@gmail.com>
Wed, 23 Mar 2016 17:50:57 +0000 (17:50 +0000)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Mar 2016 09:18:44 +0000 (10:18 +0100)
commit8ab1043c6bdc3c044edb31a674031d277b877bc7
treec5053e7c080fdeab14ead3503e05e66a0a2cfc40
parent0b547059ec43c48a0f7c479239f747b32f77fc13
CLEANUP: chunk: adding NULL check to chunk_dup allocation.

Avoiding harmful memcpy call if the allocation failed.
Resetting the size which avoids further harmful freeing
invalid pointer. Closer to the comment behavior description.
include/common/chunk.h