From 4eadbf221ef3c7beb8faf6332bb26cfc4cd61a47 Mon Sep 17 00:00:00 2001 From: philsmd Date: Tue, 14 Feb 2017 18:25:20 +0100 Subject: [PATCH] dead code: already implied length within the android fde parsing function --- src/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index 293800a23..fadf88554 100644 --- a/src/interface.c +++ b/src/interface.c @@ -7866,8 +7866,8 @@ int androidfde_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE databuf_pos++; - u32 data_len = input_len - 1 - 3 - 1 - saltlen_len - 1 - saltbuf_len - 1 - keylen_len - 1 - keybuf_len - 1; - + // u32 data_len = input_len - 1 - 3 - 1 - saltlen_len - 1 - saltbuf_len - 1 - keylen_len - 1 - keybuf_len - 1; + // // the following check is not needed, since we already checked all the other lengths (sub strings) // if (data_len != 3072) return (PARSER_SALT_LENGTH);