diff options
Diffstat (limited to 'base64.c')
-rw-r--r-- | base64.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -50,6 +50,8 @@ base64_encode(const void *data, int size, char **str) int c; const unsigned char *q; + if (size < 0) + return -1; p = s = (char *) malloc(size * 4 / 3 + 4); if (p == NULL) return -1; |