Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-06-12 | Fix undefined behavior by casting to uint64_t before left shift | Kuan-Wei Chiu | |
According to the C standard, left-shifting a value by an amount greater than or equal to the width of its promoted type results in undefined behavior. To prevent potential unexpected results, explicitly cast the uint8_t variable type to uint64_t before performing the left shift operation by 56 bits. This ensures the operation is well-defined and adheres to the standard. Fixes: 40df85d1 ("adjust cmplog header") | |||
2024-02-05 | adjust cmplog header | vanhauser-thc | |