BUG/MINOR: chunk: Fix tests on the chunk size in functions copying data
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Oct 2019 09:29:48 +0000 (11:29 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Oct 2019 14:45:09 +0000 (16:45 +0200)
commit48fa033f2809af265c230a7c7cf86413b7f9909b
tree7cd570f59cbb6636f2ddf973c267ad51eb4fc5a2
parente0f8dc576f62ace9ad1055ca068ab5d4f3a952aa
BUG/MINOR: chunk: Fix tests on the chunk size in functions copying data

When raw data are copied or appended in a chunk, the result must not exceed the
chunk size but it can reach it. Unlike functions to copy or append a string,
there is no terminating null byte.

This patch must be backported as far as 1.8. Note in 1.8, the functions
chunk_cpy() and chunk_cat() don't exist.
include/common/chunk.h