mirror of https://github.com/OISF/suricata
smb1: bound dialect count in NEGOTIATE_PROTOCOL parser
Negotiate protocol parser used an unbounded many1(complete(...))
combinator over the entire remaining packet input, discarding both
wct and bcc fields. Each NUL byte yielded one empty "dialect" entry,
causing excessive memory use.
Use bcc to limit the parsing; the dialect count is then bounded by
bcc (u16).
Ticket: #8852.
(cherry picked from commit ba1cafd34e)
pull/16211/head
parent
a8f1b5b5bd
commit
2d47fb1494
Loading…
Reference in New Issue