]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: spoe: Set the argument chunk size to 0 when SPOE variables are checked
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 May 2019 08:39:36 +0000 (10:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 May 2019 09:07:00 +0000 (11:07 +0200)
commitbf9bcb0a00d7f0f2d743bc12e146dddbbb9167b7
tree134322cf7a0bc0014a93f4b714099f6704a8149a
parent1bbc74b5545e71b68c38ddcac5b100a41d7a1c5e
MINOR: spoe: Set the argument chunk size to 0 when SPOE variables are checked

When SPOE variables are registered during HAProxy startup, the argument used to
call the function vars_check_arg() uses the trash area. To be sure it is never
released by the callee function, the size of the internal chunk (arg.data.str)
is set to 0. It is important to do so because, to fix a memory leak, this buffer
must be released by the function vars_check_arg().

This patch must be backported to 1.9.
src/flt_spoe.c