You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1088,21 +1096,31 @@ public static int Main(string[] args)
1088
1096
1089
1097
Logger.LogDirect("\n",null,null);
1090
1098
1099
+
if(totalRead!=inputStream.Length)
1100
+
{
1101
+
Logger.Error($"Failed to read the entire stream for '{hashFunctionName}'.");
1102
+
return1;
1103
+
}
1104
+
1091
1105
result=transformer.FinalizeHashValue();
1092
1106
}
1093
1107
}
1094
1108
else
1095
1109
{
1096
1110
if(inputStream.Length>int.MaxValue)
1097
1111
{
1098
-
Logger.Error($"Unable to compute hash for '{GetHashFunctionName(fvar)}' with a stream size of over ~2 GB ({inputStream.Length} bytes). The all in once computation is designed for inputs smaller than 2 GB. Please pick algorithms that supports streaming data.");
1112
+
Logger.Error($"Unable to compute hash for '{hashFunctionName}' with a stream size of over ~2 GB ({inputStream.Length} bytes). The all in once computation is designed for inputs smaller than 2 GB. Please pick algorithms that supports streaming data.");
1099
1113
return1;
1100
1114
}
1101
1115
1102
-
Logger.Warning($"Got a stream but the input algorithm '{GetHashFunctionName(fvar)}' does not support streaming computation. Trying to compute all data at once...");
1116
+
Logger.Warning($"Got a stream but the input algorithm '{hashFunctionName}' does not support streaming computation. Trying to compute all data at once...");
0 commit comments