]> git.ipfire.org Git - thirdparty/asterisk.git/commit
utils.c: NULL terminate ast_base64decode_string.
authorBen Ford <bford@digium.com>
Tue, 4 Aug 2020 19:36:22 +0000 (14:36 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 6 Aug 2020 17:19:29 +0000 (12:19 -0500)
commit769a9611e7639b02e12a5bbb1b7fdc72f96b251d
tree736a072738b36faa714f1f5b3c4dae333064ccbe
parent802aa97fa044ac9fb6d32912ae7372e05dfe2bcf
utils.c: NULL terminate ast_base64decode_string.

With the addition of STIR/SHAKEN, the function ast_base64decode_string
was added for convenience since there is a lot of converting done during
the STIR/SHAKEN process. This function returned the decoded string for
you, but did not NULL terminate it, causing some issues (specifically
with MALLOC_DEBUG). Now, the returned string is NULL terminated, and the
documentation has been updated to reflect this.

Change-Id: Icdd7d05b323b0c47ff6ed43492937a03641bdcf5
include/asterisk/utils.h
main/utils.c