mirror of https://github.com/OISF/suricata
ftp: truncate first segment if over max length
The first segment was not limited to the configured maximum line length allowing it to be up to 65k. This could result in the next input length being negative, which while handled properly by the code, did trigger a debug validation assertion. The fix is to be consistent and apply the limit to the first segment as well, which does ensure the input_len could never be less than 0. Ticket #5281pull/7349/head
parent
b8b6a17a5b
commit
9645285dff
Loading…
Reference in New Issue