commit | bfa79e91f2e45c22a56fa5c00f82ef56631d745c | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Wed May 25 15:31:05 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Wed May 25 18:54:58 2022 -0400 |
tree | 3e076f5ce1144f4a8df72a95f4ff08fcb2d914ef | |
parent | 1c3ba535b2d68b5979437b5334ad92130599e6e3 [diff] |
swtpm: Cast '1' to uint64_t before shift and assign to uint64_t variable To avoid an overflowing expression cast '1' to uint64_t before shifting it and assigning it to a uint64_t variable. In practice this kind of overflow would never happen because there aren't that many available PCR banks. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>