Attention is currently required from: Nico Huber, Light.

Light uploaded patch set #3 to this change.

View Change

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>
---
M writeprotect_ranges.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/33/62733/3

To view, visit change 62733. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2766ef8e34f7121dad746e5f32a835d480ae1cad
Gerrit-Change-Number: 62733
Gerrit-PatchSet: 3
Gerrit-Owner: Light <aarya.chaumal@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Nico Huber <nico.h@gmx.de>
Gerrit-Attention: Light <aarya.chaumal@gmail.com>
Gerrit-MessageType: newpatchset