Ignore false positive Coverity warning for string length.

This commit is contained in:
Milan Broz
2018-12-04 12:57:08 +01:00
parent 3ea8e01a9d
commit 4e1c62d7f1

View File

@@ -274,6 +274,7 @@ int argon2_verify(const char *encoded, const void *pwd, const size_t pwdlen,
}
/* No field can be longer than the encoded length */
/* coverity[strlen_assign] */
max_field_len = (uint32_t)encoded_len;
ctx.saltlen = max_field_len;