mirror of https://github.com/OISF/suricata
smtp/mime: avoid quadratic complexity in mime_smtp_find_url_strings
Ticket: 8292
When we have buffered something in ctx.decoded_line,
we already looked for '\n' in it, so we do not need to run it again
Otherwise, callers that supply mime_smtp_find_url_strings with
a few bytes at a time without "\n", have a quadratic
complexity
(cherry picked from commit 8bba47aa09)
pull/15050/head
parent
44e75573ac
commit
7a670e9b7a
Loading…
Reference in New Issue