diff options
Diffstat (limited to 'src/base64.c')
-rw-r--r-- | src/base64.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base64.c b/src/base64.c index ce8fe74d..42d296b3 100644 --- a/src/base64.c +++ b/src/base64.c @@ -8,6 +8,7 @@ #include "serd/serd.h" +#include <assert.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> @@ -98,6 +99,9 @@ serd_base64_decode(const uint8_t* const str, const size_t len, size_t* const size) { + assert(str); + assert(size); + void* buf = malloc((len * 3) / 4 + 2); *size = 0; |