mirror of https://github.com/OISF/suricata
smtp: return on line completion
Problem: If we receive a long line w/o LF, we cap it to 4k bytes and wait until a line with LF comes in order to consider the previous line complete. Any data post the 4k bytes is discarded. Currently, if a line with LF comes in after a long line, we reset all the parameters used for processing it like the line.len and line.delim_len but we still make the call to SMTPProcessRequest fn without even the need to process anything. Since such a line (with len and delim_len set to 0) should not reach mime decoder, a debug assertion triggers there in this case. Fix: Make sure to return early as the line has to be skipped and not processed at all. Bug 6019pull/8815/head
parent
51aef3c230
commit
c0067a5fff
Loading…
Reference in New Issue