[test suite] restore digest length calculation for AFL fuzzing, fixes #148
This commit is contained in:
@@ -124,12 +124,6 @@ verify_digest(char *tbuf, int t_size, fko_ctx_t ctx)
|
||||
static int
|
||||
is_valid_digest_len(int t_size, fko_ctx_t ctx)
|
||||
{
|
||||
#if AFL_FUZZING
|
||||
ctx->digest_type = FKO_DIGEST_SHA256;
|
||||
ctx->digest_len = t_size;
|
||||
return FKO_SUCCESS;
|
||||
#endif
|
||||
|
||||
switch(t_size)
|
||||
{
|
||||
case MD5_B64_LEN:
|
||||
|
||||
Reference in New Issue
Block a user