mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-13 19:37:17 +00:00
Fix aligning up addresses greater than 4GB
PVS: The size of the bit mask is less than the size of the first operand.
This commit is contained in:
parent
aa71485cc5
commit
9ab03d586e
@ -218,7 +218,7 @@ gsize
|
||||
fu_common_align_up(gsize value, guint8 alignment)
|
||||
{
|
||||
gsize value_new;
|
||||
guint32 mask = 1 << alignment;
|
||||
gsize mask = (gsize)1 << alignment;
|
||||
|
||||
g_return_val_if_fail(alignment <= FU_FIRMWARE_ALIGNMENT_2G, G_MAXSIZE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user