commit | ca925c9c28934739311210a1cc5e19fab972c5fa | [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:29:44 2021 +0200 |
tree | 1c52236ff400f8f9ba2e625064a6476074346c21 | |
parent | 5bbfff107bb8b5bcb2d7985f0ec0769139c89235 [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.