]> git.ipfire.org Git - thirdparty/grub.git/commit
msdos: Fix overflow in converting partition start and length into 512B blocks
authorMichael Chang <mchang@suse.com>
Thu, 13 Sep 2018 08:08:20 +0000 (16:08 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Sep 2018 12:56:45 +0000 (14:56 +0200)
commit8ada906031d9bd86547db82647f91cdf7db54fbf
treee7efaac7a4f7bc2aaffe9377b24ee090962133a4
parent5b9308aff04594fd9f351949fdc2c7e6c2da1a2b
msdos: Fix overflow in converting partition start and length into 512B blocks

When booting from NVME SSD with 4k sector size, it fails with the message.

error: attempt to read or write outside of partition.

This patch fixes the problem by fixing overflow in converting partition start
and length into 512B blocks.

Signed-off-by: Michael Chang <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/partmap/msdos.c