From 958ca90132bbddd3d757aee26cf089a49fb23b08 Mon Sep 17 00:00:00 2001 From: jsteube Date: Tue, 14 Feb 2017 17:59:23 +0100 Subject: [PATCH] Test failed to workaround coverity false-positive --- src/rp_cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rp_cpu.c b/src/rp_cpu.c index ea7e69b91..bd2eb3d07 100644 --- a/src/rp_cpu.c +++ b/src/rp_cpu.c @@ -78,8 +78,7 @@ static int mangle_reverse (char arr[BLOCK_SIZE], int arr_len) static int mangle_double (char arr[BLOCK_SIZE], int arr_len) { - //if ((arr_len * 2) >= BLOCK_SIZE) return (arr_len); - if (arr_len >= (BLOCK_SIZE / 2)) return (arr_len); + if ((arr_len * 2) >= BLOCK_SIZE) return (arr_len); memcpy (&arr[arr_len], arr, (size_t) arr_len);