Merge pull request #2216 from synqa/fix-ub-leftshift

Fix undefined behavior of left shift
This commit is contained in:
Ilya Shipitsin authored and GitHub committed 2026-02-05 15:13:46 +01:00
commit a3176175f9
1 file changed
+1 -1
+1 -1
View File
@@ -4761,7 +4761,7 @@ static void MY_SHA0_Transform(MY_SHA0_CTX* ctx) {
UCHAR* p = ctx->buf;
int t;
for(t = 0; t < 16; ++t) {
UINT tmp = *p++ << 24;
UINT tmp = (UINT)*p++ << 24;
tmp |= *p++ << 16;
tmp |= *p++ << 8;
tmp |= *p++;