]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log/encode: fix potential NULL-dereference in LOGCHAR()
authorAurelien DARRAGON <adarragon@haproxy.com>
Mon, 29 Apr 2024 18:19:05 +0000 (20:19 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 30 Apr 2024 08:10:35 +0000 (10:10 +0200)
commit97240d01b3e111a72265a953e3ca774680df8fef
tree269625d4428d18bdacb4b64637dc6f6a43386239
parent949ac95aa6d69d810cd6ed40138f033f5065e305
BUG/MINOR: log/encode: fix potential NULL-dereference in LOGCHAR()

When CBOR encoding was added in c614fd3b9 ("MINOR: log: add +cbor encoding
option"), in LOGCHAR(), we forgot to check that we don't assign the NULL
value to tmplog (as we assume that tmplog cannot be NULL at the end of
sess_build_logline())

No backport needed.
src/log.c