]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/mime: check invalidity after final b64 block
authorShivani Bhardwaj <shivani@oisf.net>
Wed, 24 Apr 2024 07:17:34 +0000 (12:47 +0530)
committerVictor Julien <victor@inliniac.net>
Thu, 25 Apr 2024 04:52:26 +0000 (06:52 +0200)
commit4c131a4b3083eebf53023e9d7399c7e33db2fc4d
treef0125675e304aa984053e6aaeaf72a84326a6074
parent884400f1ae4e245d59c4843368594797b8863dec
util/mime: check invalidity after final b64 block

Since there is code in place that skips over invalid base64 characters
and creates a new array out of the remainder vector, all test must be
made after that final array has been created and against the variable
that holds the actual length of the final array.
src/util-decode-mime.c