Light has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/62733 )
Change subject: writeprotect_ranges.c: Use 1UL if left shifting more than 32bits ......................................................................
writeprotect_ranges.c: Use 1UL if left shifting more than 32bits
size_t is of size 64 bits, while 1 (int) is of 32 bits. Left shifting 1 by more than 32 will lead to shift-count-overflow bug. So use 1UL or 1ULL to make 1 of type unsigned long or unsigned long long respectively.
Change-Id: I2766ef8e34f7121dad746e5f32a835d480ae1cad Signed-off-by: Aarya Chaumal aarya.chaumal@gmail.com --- A tags M writeprotect_ranges.c 2 files changed, 5,216 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/33/62733/1