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
So, an integer promotion is happening here, and subexpression data[j] << 24 may set the sign bit of a 32-bit (probably 32-bit) signed int.
Possible fixes:
As noted in #33 we have the same problem when building
m[i]:crypto-algorithms/sha1.c
Line 26 in cfbde48
So, an integer promotion is happening here, and subexpression
data[j] << 24may set the sign bit of a 32-bit (probably 32-bit)signed int.Possible fixes:
m[i] = ((WORD)data[j] << 24) + (data[j + 1] << 16) + (data[j + 2] << 8) + (data[j + 3]);similarly to Signed overflow undefined behavior in md5.c #33m[i] = ((WORD)data[j] << 24) | ((WORD)data[j + 1] << 16) | ((WORD)data[j + 2] << 8) | ((WORD)data[j + 3]);