commit | 4a9c9ea0d318bec2f67848c5ceaf4ad5bcb91d09 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Fri May 15 16:36:05 2015 +0800 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri May 22 17:08:01 2015 +0200 |
tree | 9802cb9b558882a5df9c4de016c937d3047572f4 | |
parent | b062ad86dcd33ab39be5060b0655d8e13834b167 [diff] |
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 <rjones@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>