1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Test failed to workaround coverity false-positive

This commit is contained in:
jsteube 2017-02-14 17:59:23 +01:00
parent b682091155
commit 958ca90132

View File

@ -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) static int mangle_double (char arr[BLOCK_SIZE], int arr_len)
{ {
//if ((arr_len * 2) >= BLOCK_SIZE) return (arr_len); if ((arr_len * 2) >= BLOCK_SIZE) return (arr_len);
if (arr_len >= (BLOCK_SIZE / 2)) return (arr_len);
memcpy (&arr[arr_len], arr, (size_t) arr_len); memcpy (&arr[arr_len], arr, (size_t) arr_len);