mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
util/nvmutil: fix a bad cast (or lack thereof)
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -1327,7 +1327,7 @@ gbe_x_offset(size_t p, const char *f_op, const char *d_type,
|
||||
|
||||
check_bin(p, "part number");
|
||||
|
||||
off = (off_t)p * nsize;
|
||||
off = ((off_t)p) * (off_t)nsize;
|
||||
|
||||
if (off + GBE_PART_SIZE > ncmp)
|
||||
err(ECANCELED, "%s: GbE %s %s out of bounds",
|
||||
|
||||
Reference in New Issue
Block a user