From 56e2e5ca2fa5e2335b5faff194f4e8c4b0f7898d Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Thu, 19 Mar 2015 23:45:22 -0400 Subject: [PATCH] [test suite] restore digest length calculation for AFL fuzzing, fixes #148 --- lib/fko_decode.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/fko_decode.c b/lib/fko_decode.c index c680f9c5..9e724df9 100644 --- a/lib/fko_decode.c +++ b/lib/fko_decode.c @@ -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: