BUG/MAJOR: http: fix buffer overflow on loguri buffer.
authorEmeric Brun <ebrun@haproxy.com>
Wed, 5 Jul 2017 11:33:16 +0000 (13:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Jul 2017 11:59:29 +0000 (13:59 +0200)
commit96fd926ccc61466caecf573aebad190dfd8b9a83
tree2f82795ad9fec2dd56f131875fde1cdb5c4aa5dd
parent7d27f3c12d2aaa3514cdd02ed94ce4421c32fd6d
BUG/MAJOR: http: fix buffer overflow on loguri buffer.

The pool used to log the uri was created with a size of 0 because the
configuration and 'tune.http.logurilen' were parsed too earlier.

The fix consist to postpone the pool_create as it is done for
cookie captures.

Regression introduced with 'MINOR: log: Add logurilen tunable'
src/cfgparse.c
src/proto_http.c