]> git.ipfire.org Git - thirdparty/suricata.git/commit
mime/base64: decode cleanups and simplification
authorVictor Julien <vjulien@oisf.net>
Fri, 3 Jun 2022 15:10:59 +0000 (17:10 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 6 Jun 2022 19:15:23 +0000 (21:15 +0200)
commit9e244a87ae8630ac14d5897722dc7a6a83802e42
tree0e98f480d10125a4de1e8ad1f98c004dd11f76aa
parente1a24c8ee7d116bb0bbea97ac08ac016743ec91a
mime/base64: decode cleanups and simplification

Addresses edge case: > 4 bytes at the end of the input with 2 or more
spaces.

Changes length type for remainder processing to allow for much longer
lines, which can happen in practice.

Adds a series of debug validation checks with real error handling
as well, to assist the fuzzer to find more edge cases.

(cherry picked from commit 30e47b21714b5d9039f22df7b406b201bdd15b7e)
src/util-decode-mime.c