summary refs log tree commit diff stats
path: root/hw/misc/ivshmem.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2017-07-26 23:42:07 -0300
committerMichael Tokarev <mjt@tls.msk.ru>2017-07-31 13:06:38 +0300
commit2a4e2e4919d1fcb915f1b33f9396aad5dc4616f5 (patch)
treefa28ec741dd84293348d44e4f6206df6b6bd1445 /hw/misc/ivshmem.c
parentb94b330e233368d906e8b66e827a761e67845c51 (diff)
downloadfocaccia-qemu-2a4e2e4919d1fcb915f1b33f9396aad5dc4616f5.tar.gz
focaccia-qemu-2a4e2e4919d1fcb915f1b33f9396aad5dc4616f5.zip
loader: check get_image_size() return value
since a negative value means it errored.

hw/core/loader.c:149:9: warning: Loss of sign in implicit conversion
    if (size > max_sz) {
        ^~~~
hw/core/loader.c:171:9: warning: Loss of sign in implicit conversion
    if (size > memory_region_size(mr)) {
        ^~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/misc/ivshmem.c')
0 files changed, 0 insertions, 0 deletions