]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/base64: skip any invalid char for RFC2045
authorShivani Bhardwaj <shivani@oisf.net>
Fri, 17 Mar 2023 12:18:35 +0000 (17:48 +0530)
committerVictor Julien <vjulien@oisf.net>
Mon, 10 Jul 2023 07:27:01 +0000 (09:27 +0200)
commite46b0337e50897424d05371aa26d5f20e172f749
treefd72732cab1dc43a1add2b6f0adef8d4677c8e70
parent85ae1d25e4998d19cb1f7fd714027b3da1c8aa4e
util/base64: skip any invalid char for RFC2045

RFC 2045 states that any invalid character should be skipped over, this
is the RFC used by mime handler in Suricata code to deal with base64
encoded data.
So far, only spaces were skipped as a part of implementation of this
RFC, extend it to also skip over any other invalid character. Add
corresponding test.
src/util-base64.c
src/util-base64.h