Fix: Protect against a few out of bounds or uninitialised usage errors

This commit is contained in:
Charles Pigott
2018-10-14 23:36:14 +01:00
committed by frosch
parent 52ed3bcbaa
commit b5028efc1f
9 changed files with 19 additions and 5 deletions

View File

@@ -154,6 +154,7 @@ static uint32 RotateRight(uint32 val, uint32 rot)
{
/* Do not rotate more than necessary */
rot %= 32;
assert(rot > 0);
return (val >> rot) | (val << (32 - rot));
}