mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
block: Detect multiplication overflow in bdrv_getlength
Bogus image may have a large total_sectors that will overflow the multiplication. For cleanness, fix the return code so the error message will be meaningful. Reported-by: Richard W.M. Jones <[email protected]> Signed-off-by: Fam Zheng <[email protected]> Reviewed-by: Alberto Garcia <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
This commit is contained in:
1 parent
b062ad86dc
commit
4a9c9ea0d3
1 file changed
+1