2
0
Fork 0
mirror of https://git.sr.ht/~sircmpwn/mkproof synced 2024-06-08 16:36:07 +02:00
This commit is contained in:
Samuel Neves 2015-12-04 13:31:45 +00:00
parent ee10969890
commit cf1883ae5c

View File

@ -279,10 +279,10 @@ int decode_string(argon2_context *ctx, const char *str, argon2_type type) {
do { \
size_t bin_len = (max_len); \
str = from_base64(buf, &bin_len, str); \
if (str == NULL) { \
if (str == NULL || bin_len > UINT32_MAX) { \
return 0; \
} \
(len) = bin_len; \
(len) = (uint32_t)bin_len; \
} while (0)
size_t maxadlen = ctx->adlen;