]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: Extend disk_blk_part_validate() with range checking
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 13 Aug 2023 23:46:45 +0000 (01:46 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 22 Aug 2023 19:17:52 +0000 (15:17 -0400)
commitbfd98b9a634e5922ca60597f59d83afdaa7c99ad
tree946b1effd7e17939421e44eece60642e5fc53c23
parent2bc0dfef9f27c03f24784f4f2382079caff05df1
disk: Extend disk_blk_part_validate() with range checking

Check whether access is out of bounds of the partition and
return an error. This way there is no danger of esp. write
or erase outside of the confines of partition.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
disk/disk-uclass.c