]> git.ipfire.org Git - thirdparty/suricata.git/commit
base64: make decoder handle decoded data space constraints
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 2 Jun 2022 15:20:07 +0000 (20:50 +0530)
committerVictor Julien <vjulien@oisf.net>
Mon, 6 Jun 2022 07:02:34 +0000 (09:02 +0200)
commit5b2761977871a94d559a9ba3b026593bb1ffd68b
tree6d9fa98ac94f02914f759ad1cb0d932b9812ea70
parentcb01cc6929b6bfdf02f7b3049d7bd110a1465fa4
base64: make decoder handle decoded data space constraints

So far, it was the job of caller to send the bae64 decoder a perfect
block of data and take care of the destination buffer (decoded data)
size. Now, make it the decoder's job to take care of any space
constraints that the destination buffer may have and return accordingly.

Also, handle space characters in base64 encoded data as per RFC 2045.

Update MIME parser accordingly to handle the base64 data.

Ticket: 5315
src/datasets.c
src/detect-base64-decode.c
src/util-base64.c
src/util-base64.h
src/util-decode-mime.c