]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/mime: use uint32_t for consumed bytes 8581/head
authorShivani Bhardwaj <shivani@oisf.net>
Wed, 8 Mar 2023 15:46:03 +0000 (21:16 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 9 Mar 2023 10:13:54 +0000 (15:43 +0530)
commitc089bbb7d7a6250fc4fdcffca1923a29916c1e1e
treeaf5e0efc4ddb2bed1753aa1e17f3b3a6ace38e75
parent0f3e7761da5904baf6a2e04a8f1dcd83d686aa71
util/mime: use uint32_t for consumed bytes

In a case of the line buffer being over 255 bytes, the consumed bytes
would reset to 0 as it was uint8_t. Fix this integer overflow by setting
the type to uint32_t.

Redmine ticket: 5883
src/util-decode-mime.c