We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2282943 commit 4b15cc3Copy full SHA for 4b15cc3
Shared/sdk/CChecksum.h
@@ -66,7 +66,10 @@ class CChecksum
66
{
67
CChecksum result;
68
result.ulCRC = CRCGenerator::GetCRCFromBuffer(cpBuffer, ulLength);
69
- CMD5Hasher().Calculate(cpBuffer, ulLength, result.md5);
+
70
+ if (result.ulCRC != 0)
71
+ CMD5Hasher().Calculate(cpBuffer, ulLength, result.md5);
72
73
return result;
74
}
75
Shared/sdk/SharedUtil.Hash.hpp
@@ -145,6 +145,9 @@ namespace SharedUtil
145
146
void CMD5Hasher::Update(unsigned char* input, unsigned int input_length)
147
148
+ if (input_length == 0)
149
+ return;
150
151
// CRYPT_START
152
unsigned int input_index, buffer_index;
153
unsigned int buffer_space; // how much space is left in buffer
0 commit comments