summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLiam Merwick2018-11-05 22:38:38 +0100
committerMax Reitz2018-11-12 17:49:21 +0100
commit8d9401c2791ee2d2805b741b1ee3006041edcd3e (patch)
treecf679432002d6c52ba8a4ffe4a0dea704ee0b349 /scripts
parentqemu-img: assert block_job_get() does not return NULL in img_commit() (diff)
downloadqemu-8d9401c2791ee2d2805b741b1ee3006041edcd3e.tar.gz
qemu-8d9401c2791ee2d2805b741b1ee3006041edcd3e.tar.xz
qemu-8d9401c2791ee2d2805b741b1ee3006041edcd3e.zip
block: Fix potential Null pointer dereferences in vvfat.c
The calls to find_mapping_for_cluster() may return NULL but it isn't always checked for before dereferencing the value returned. Additionally, add some asserts to cover cases where NULL can't be returned but which might not be obvious at first glance. Signed-off-by: Liam Merwick <Liam.Merwick@oracle.com> Message-id: 1541453919-25973-5-git-send-email-Liam.Merwick@oracle.com [mreitz: Dropped superfluous check of "mapping" following an assertion that it is not NULL, and fixed some indentation] Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions