]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: addons/51d: NUL-terminate headers before passing them to Trie API
authorWilly Tarreau <w@1wt.eu>
Tue, 26 May 2026 07:36:12 +0000 (09:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 May 2026 11:13:24 +0000 (13:13 +0200)
commit93f9ecbfe62a8ede2ab86dd1cb858f972697cd83
tree29380bc62bba40022866dced56646d9d94aa06d8
parent2a47cab7f3e7d50d435f4e657af7317a35f51308
BUG/MINOR: addons/51d: NUL-terminate headers before passing them to Trie API

_51d_set_device_offsets() passes ctx.value.ptr directly to
fiftyoneDegreesGetDeviceOffset() which expects a null-terminated string.
Let's copy it through the trash first, to avoid possibly surronding
garbage.

This can be backported to all versions.
addons/51degrees/51d.c