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 5623 Ticket 5694pull/8226/head
parent
cac84e4722
commit
433266b076
Loading…
Reference in New Issue