]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pattern: a sample marked as const could be written
authorThierry Fournier <thierry.fournier@ozon.io>
Tue, 10 Nov 2020 19:51:36 +0000 (20:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Nov 2020 09:43:15 +0000 (10:43 +0100)
commita68affeaa9377f88f773ef62a9bb2541dfb672d3
tree70dc6688bfd151e01cc561b488f7514760999120
parent8f04e1849d40243ba7c103b06bd2c061840ceabc
BUG/MINOR: pattern: a sample marked as const could be written

The functions add final 0 to string if the final 0 is not set,
but don't check the flag CONST. This patch duplicates the strings
if the final zero is not set and the string is CONST.

Should be backported until 2.2 (at least)
src/pattern.c