]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-conv: Make url-dec failed if no space for trailing null byte
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Jul 2026 09:54:05 +0000 (11:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 06:52:07 +0000 (08:52 +0200)
commit36243965a04da0d06bd6ecb9f4a7895e90bf605d
tree80eddc8577239f1e540ea6b5d018dbd7af41f727
parenta608d2cade75cc5dc404ab3eaabad76fe2dec54e
BUG/MINOR: http-conv: Make url-dec failed if no space for trailing null byte

for url-dec converter, a trailing null byte is added at the end of the input
sample because it is requested by url_decode() function. However, when the
buffer was full, the last byte was crushed by the trailing null byte. In
that case, the last character was lost and not decoded.

Now, the converter just fails by returning 0.

This patch could be backported to all supported versions but it is a very
minor issue.
src/http_conv.c