]> git.ipfire.org Git - thirdparty/suricata.git/commit
smtp/mime: Restrict file name lengths
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 4 Feb 2020 15:13:49 +0000 (10:13 -0500)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 22 Mar 2020 15:40:59 +0000 (11:40 -0400)
commit6e69781725cff159358c11eb256b14c2972404c5
tree3a88c247aabdf2d4d444a415cea6811e11188c57
parent166124808bd21453fe500f20be0a07054d9ce628
smtp/mime: Restrict file name lengths

This commit places restrictions on the length of the file name specified
in attachments (`name=` or `filename=`) to `NAME_MAX`. Names exceeding
these limits will be truncated and processing will continue with the
truncated name.

(cherry picked from commit d0d20bd8746ad8933a515fa4facf9e3e10f22ecc)
src/suricata-common.h
src/util-decode-mime.c