aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-04-29 19:03:11 +0200
committerKevin Wolf <kwolf@redhat.com>2014-04-30 14:46:13 +0200
commit91f827dcff61c3e007def4c949d3a8310954b85e (patch)
treeb33046c00ba2467efb8a619f4c12e9f242d9b6fa /scripts/qapi-commands.py
parentblock: Use error_abort in bdrv_image_info_specific_dump() (diff)
downloadqemu-91f827dcff61c3e007def4c949d3a8310954b85e.tar.xz
qemu-91f827dcff61c3e007def4c949d3a8310954b85e.zip
qcow2: Avoid overflow in alloc_clusters_noref()
alloc_clusters_noref() stores the cluster index in a uint64_t. However, offsets are often represented as int64_t (as for example the return value of alloc_clusters_noref() itself demonstrates). Therefore, we should make sure all offsets in the allocated range of clusters are representable using int64_t without overflows. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions