]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sample: always check converters' arguments
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2019 09:25:29 +0000 (10:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2019 09:44:49 +0000 (10:44 +0100)
commit46dfd78cbf2591ab9cd2d8e30046e811f4179f7b
treec64db46a7a563ac77161293296c3288d8bb6dff4
parent50603267981a002d2593bfe219e5071d66a8ea65
BUG/MINOR: sample: always check converters' arguments

In 1.5-dev20, sample-fetch arguments parsing was addresse by commit
689a1df0a1 ("BUG/MEDIUM: sample: simplify and fix the argument parsing").
The issue was that argument checks were not run for sample-fetches if
parenthesis were not present. Surprisingly, the fix was mde only for
sample-fetches and not for converters which suffer from the exact same
problem. There are even a few comments in the code mentioning that some
argument validation functions are not called when arguments are missing.

This fix applies the exact same method as the one above. The impact of
this bug is limited because over the years the code has learned to work
around this issue instead of fixing it.

This may be backported to all maintained versions.
src/sample.c