]> git.kaiwu.me - haproxy.git/commit
CLEANUP: qpack: simplify length checks in qpack_decode_fs()
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 5 Mar 2026 14:29:06 +0000 (15:29 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 5 Mar 2026 14:42:02 +0000 (15:42 +0100)
commit65d3416da54c3583d4807e47b0a407184aa5f97c
tree305d3d0947b395ed71aed4b6c09f4388d79d953e
parent7d48e80da56845f8cf8097e3c638b20bc97e140c
CLEANUP: qpack: simplify length checks in qpack_decode_fs()

This patch simplifies the decoding loop by merging the variable-length
integer truncation check (len == -1) with the subsequent buffer
availability check (len < length).

This removes redundant code blocks and improves readability without
changing the decoding logic.

Note that the second removal is correct, as the check was duplicate and
unnecessary."
src/qpack-dec.c