]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: server: fix misuse of format string in load-server-state's warnings
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:38:47 +0000 (18:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:51:40 +0000 (18:51 +0200)
commit31138fae9ff6f1a2d07496c2493a8302dbdc43a6
tree15eb0f0fd3c4556cc7ff6db20a3226991cc218a6
parente1aebb2994a799dc67e61bd28cfef4fc7987d8c2
BUG/MEDIUM: server: fix misuse of format string in load-server-state's warnings

Commit e11cfcd ("MINOR: config: new backend directives:
load-server-state-from-file and server-state-file-name") introduced a bug
which can cause haproxy to crash upon startup by sending user-controlled
data in a format string when emitting a warning. Fix the way the warning
message is built to avoid this.

No backport is needed, this was introduced in 1.6-dev6 only.
src/server.c