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 3f1b687 commit 40b9560Copy full SHA for 40b9560
src/headers/tomcrypt_private.h
@@ -90,7 +90,7 @@ int func_name (hash_state * md, const unsigned char *in, unsigned long inlen)
90
if (md-> state_var .curlen > sizeof(md-> state_var .buf)) { \
91
return CRYPT_INVALID_ARG; \
92
} \
93
- if ((md-> state_var .length + inlen) < md-> state_var .length) { \
+ if ((md-> state_var .length + inlen * 8) < md-> state_var .length) { \
94
return CRYPT_HASH_OVERFLOW; \
95
96
while (inlen > 0) { \
0 commit comments