]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: deviceatlas: fix off-by-one in da_haproxy_conv()
authorDavid Carlier <dcarlier@deviceatlas.com>
Sat, 14 Feb 2026 13:23:58 +0000 (13:23 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 14 Feb 2026 13:47:22 +0000 (14:47 +0100)
commit7098b4f93a4ffcd170d94adcd32e3a082538db17
tree531e5a27310e9e0910bb643f267a4e6f2a31c2e3
parentd8f219b380aaa60682cbe945ea24de961aa9fd2b
BUG/MINOR: deviceatlas: fix off-by-one in da_haproxy_conv()

The user-agent string copy had an off-by-one error: the buffer size
limit did not account for the null terminator, and the memcpy length
used i-1 which truncated the last character of the user-agent string.

This should be backported to lower branches.
addons/deviceatlas/da.c