]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: counters: check for null-deref when looking up an alternate table
authorWilly Tarreau <w@1wt.eu>
Wed, 9 Apr 2014 11:25:42 +0000 (13:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 9 Apr 2014 11:32:11 +0000 (13:32 +0200)
commit6a0b6bd648592e73f42fb8e7341bf984d26ba8dc
tree0775363da3b39b2fbf4943c300e1227203c1bae5
parent25a15227f5d3e335202591e1b6c6bc6d99b1ec51
BUG/MAJOR: counters: check for null-deref when looking up an alternate table

Constructions such as sc0_get_gpc0(foo) allow to look up the same key as
the current key but in an alternate table. A check was missing to ensure
we already have a key, resulting in a crash if this lookup is performed
before the associated track-sc rule.

This bug was reported on the mailing list by Neil@iamafreeman and
narrowed down further by Lukas Tribus and Thierry Fournier.

This bug was introduced in 1.5-dev20 by commit "0f791d4 MEDIUM: counters:
support looking up a key in an alternate table".
src/session.c