koolkhel/vitastor:ubsan-sha256-shift
master
The message bytes were promoted to int before the shift by 24, which overflows for every byte of 0x80 and above: undefined behaviour that UBSan reports. Widen them to WORD first. The digest does not change.