]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 25 Jul 2023 14:58:56 +0000 (20:28 +0530)
commit328e2474d3a7394227586952281975d027b32a14
tree5b64d07a27aaae999a599811dc7bbfea5b9677bc
parentbb242a04beebf09ff82e36eeaf738504cac985a9
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.

(cherry picked from commit e46b0337e50897424d05371aa26d5f20e172f749)
src/util-base64.c
src/util-base64.h