Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac: validate mac_partition is within sector
If md->signature == MAC_DRIVER_MAGIC and md->block_size == 1023, a single 512 byte sector would be read (secsize / 512). However the partition structure would be located past the end of the buffer (secsize % 512). Signed-off-by: Kees Cook <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information