mirror of https://github.com/OISF/suricata
util/base64: fix heap buffer overflow
While updating the destination pointer, we were also adding the padded bytes which are not a part of the decoded bytes. This led to running out of space on the destination buffer. Fix it by only incrementing destination buffer ptr by the number of actual bytes that were decoded. Ticket 5623pull/8218/head
parent
c56fa0a805
commit
f80c999db3
Loading…
Reference in New Issue