]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http_act: Properly handle decoding errors in *-headers-bin actions
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 Mar 2026 20:24:32 +0000 (22:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Apr 2026 05:49:40 +0000 (07:49 +0200)
commit7c73b08a9843d61238c4baf11714be1dc8b85fee
treeece59deb0baeb9344bfe50dd89aa08fef723ca8b
parentee95a7539eddc4f9b18f6ea0b6b45e7fdd316331
BUG/MINOR: http_act: Properly handle decoding errors in *-headers-bin actions

When binary headers are decoded, return value of decode_varint() function is
not properly handled. On error, it can return -1. However, the result is
inconditionnaly added to an unsigned offset.

Now, a temporary variable is used to be abl to test decode_varint() return
value. It is added to the offset on success only.

No backport needed.
src/http_act.c