BUG/MINOR: protocol_buffer: Wrong maximum shifting.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 2 Apr 2020 12:24:31 +0000 (14:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Apr 2020 13:09:46 +0000 (15:09 +0200)
commit876ed55d9b8d0c298b6cac1003ec365a19bf7aad
tree351cf6165989f9950b619973a6b24da3905f010b
parent5dfc5d5cd0d2128d77253ead3acf03a421ab5b88
BUG/MINOR: protocol_buffer: Wrong maximum shifting.

This patch fixes a bad stop condition when decoding a protocol buffer variable integer
whose maximum lenghts are 10, shifting a uint64_t value by more than 63.

Thank you to Ilya for having reported this issue.

Must be backported to 2.1 and 2.0.
include/proto/protocol_buffers.h