commit | edf94cbc52553abbb43e64686bfba024d4d62cff | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Jun 28 15:26:00 2021 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Mon Jun 28 16:33:37 2021 +0200 |
tree | 1a762df54841013a26461ab6a985db46176878fc | |
parent | b3cb3221e5dabc73deec942a3475ef21289853bd [diff] |
BUG/MINOR: mqtt: Fix parser for string with more than 127 characters Parsing of too long strings (> 127 characters) was buggy because of a wrong cast on the length bytes. To fix the bug, we rely on mqtt_read_2byte_int() function. This way, the string length is properly decoded. This patch should partely fix the issue #1310. It must be backported to 2.4. (cherry picked from commit ca925c9c28934739311210a1cc5e19fab972c5fa) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>