BUG/MINOR: qpack: support bigger prefix-integer encoding
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 30 May 2022 12:24:40 +0000 (14:24 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 30 May 2022 12:30:05 +0000 (14:30 +0200)
commit11f5a796c11d8d850590eb73ff661ea7d6622237
tree139a521668bdd8e8f45a1dd8b603d3189ad32a07
parent5f6de8d77a75d13e95658ba04beb22b24f37e77d
BUG/MINOR: qpack: support bigger prefix-integer encoding

Prefix-integer encoding function was incomplete. It was not able to deal
correctly with value encoded on more than 2 bytes. This maximum value depends
on the size of the prefix, but value greater than 254 were all impacted.

Most notably, this change is required to support header name/value with
sizeable length. Previously, length was incorrectly encoded. The client thus
closed the connection with QPACK_DECOMPRESSION_ERROR.
src/qpack-enc.c