]> git.kaiwu.me - haproxy.git/commit
IMPORT: slz: clarify that the size promise applies to the stream, not to a call
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Aug 2026 16:14:45 +0000 (18:14 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 12 Aug 2026 07:14:07 +0000 (09:14 +0200)
commit086cc5e5506897c34a6a6f498d0519e49a8f1e75
tree8b6443fc5db1dfaa86ef933a1bd5db2bc2bc78ad
parent52255282e0f26001f6e4befe39973e2f0f680e44
IMPORT: slz: clarify that the size promise applies to the stream, not to a call

The output size guarantee of slz_rfc1951_encode() reads as if it applied
to every call, but up to 31 bits are retained in the queue from one call
to the next (on 64-bit systems), so a call may emit a few bytes that
belong to the data of the previous ones, and a single call may emit up to
5 bytes more than expected. Let's just clarify this to avoid future
surprises.

This is libslz upstream commit 5fa0c8da22b7d0a6d67f287a5a2af6af8e6d2b85
src/slz.c