]> git.ipfire.org Git - thirdparty/suricata.git/commit
mime: compute full body md5 9120/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 16 Jun 2023 13:28:38 +0000 (15:28 +0200)
committerVictor Julien <vjulien@oisf.net>
Fri, 30 Jun 2023 18:49:14 +0000 (20:49 +0200)
commit86ed6cd9edea7b7d1376b93bdfa68320bbde673f
tree7cc9f752a23987ead620b324d7705d0b91f02622
parent4432b476d187e9c453f87fd60e29c4bf4fe99418
mime: compute full body md5

Previously, the problem was that nested headers/boundaries were not
used to compute the hash

Solution is to move up the call to the hash computation from
ProcessMimeBody to its caller ProcessMimeEntity, and add a set of
conditions to ensure that we are not in the principal headers.

Ticket: #6185
(cherry picked from commit a3168fda787d4f4eee45f5c84bcc1709f207ae0a)
src/util-decode-mime.c