]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-table: properly convert binary samples to keys
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Aug 2016 10:08:41 +0000 (12:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Aug 2016 12:30:57 +0000 (14:30 +0200)
commitf65c6c0456410396ab7033c7db0ad892d14a4577
tree4b9f2592457a4b1afa3acf192de6c115e07c6597
parentce6955e632df7605edbd3418cbbc239e0a1106a8
BUG/MEDIUM: stick-table: properly convert binary samples to keys

The binary sample to stick-table key conversion is wrong. It doesn't
check that the binary sample is writable before padding it. After a
quick audit, it doesn't look like any existing sample fetch function
can trigger this bug. The correct fix consists in calling smp_make_rw()
prior to padding the sample.

This fix should be backported to 1.6.
src/stick_table.c