]> git.ipfire.org Git - thirdparty/suricata.git/commit
util/base64: check dest buf size to hold 3Bytes
authorShivani Bhardwaj <shivani@oisf.net>
Thu, 30 Mar 2023 07:43:08 +0000 (13:13 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 25 Jul 2023 14:59:47 +0000 (20:29 +0530)
commit9308a6c7a8ef172eec225f478dd0337dbb49dbe9
tree27aa43680490c9dcde4a32f875e46f6328943780
parentcb9dd4be1d84a1b04e8aa55d9d20db4ddd83547b
util/base64: check dest buf size to hold 3Bytes

The destination buffer should be able to hold at least 3 Bytes during
the processing of the last block of data. If it cannot hold at least 3
Bytes, then that may lead to dynamic buffer overflow while decoding.

(cherry picked from commit 62d782156caddec0b4ca795d7236c6483d02efff)
src/util-base64.c