]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: resolvers: fix risk of appending garbage past the domain name
authorWilly Tarreau <w@1wt.eu>
Sat, 23 May 2026 16:55:22 +0000 (18:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 May 2026 08:52:42 +0000 (10:52 +0200)
commit49d6306de311cd05cba21fad580c69e01b694e66
tree9dee0a41d17bf3351febcd329bc934dd6a559364
parent01ebb668a4622d17b7a92bb4c836441e3edd0d42
BUG/MINOR: resolvers: fix risk of appending garbage past the domain name

The previous fix 75f72c2eb ("BUG/MEDIUM: resolvers: Fix test on dn label
size in resolv_dn_label_to_str()") may still leave garbage from the input
buffer into the response: if a component length is passed as zero, it
should mark the end, but instead a dot will be emitted, and whatever
follows it in the input buffer would continue to be appended as extra
components. While having no direct consequences beyond the domain not
being properly decoded, it could at least complicate troubleshooting.

This should be backported where the fix above is backported.
src/resolvers.c