mirror of
https://git.sr.ht/~sircmpwn/mkproof
synced 2024-06-08 16:36:07 +02:00
close #37
This commit is contained in:
parent
ee10969890
commit
cf1883ae5c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue