]> git.ipfire.org Git - thirdparty/suricata.git/commit
mqtt: ensure we do not request extra data after buffering
authorSascha Steinbiss <satta@debian.org>
Tue, 8 Mar 2022 22:15:05 +0000 (23:15 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 8 Apr 2022 20:58:27 +0000 (22:58 +0200)
commit5618273ef4babc2fe8ff6a40848cd92dc4dfcdcf
tree31b18b795adf2ab78d9aef244949bf9fa4748e06
parente3180e3248e38311ad56a080233ad1a8d31a623b
mqtt: ensure we do not request extra data after buffering

This addresses Redmine bug #5018 by ensuring that the parser
never requests additional data via the Incomplete error, but to
raise an actual parse error, since it is supposed to have all
the data as specified by the message length in the header already.
rust/src/mqtt/parser.rs