qemu-e2k/hw/core
Philippe Mathieu-Daudé 2a4e2e4919 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>
2017-07-31 13:06:38 +03:00
..
bus.c
empty_slot.c
fw-path-provider.c
generic-loader.c
hotplug.c
irq.c
loader-fit.c
loader.c loader: check get_image_size() return value 2017-07-31 13:06:38 +03:00
machine.c Revert "machine: Convert abstract typename on compat_props to subclass names" 2017-07-17 15:41:30 -03:00
Makefile.objs hw/core: nmi.c can be compiled as common-obj nowadays 2017-06-05 17:23:36 +03:00
nmi.c
null-machine.c
or-irq.c
platform-bus.c platform-bus: use get_uint() for "addr" property 2017-06-20 14:31:32 +02:00
ptimer.c
qdev-properties-system.c qdev: Add const qualifier to PropertyInfo definitions 2017-07-14 12:04:42 +02:00
qdev-properties.c migration/next for 20170718 2017-07-19 12:30:41 +01:00
qdev.c qdev: support properties which don't set a default value 2017-07-17 13:36:06 +01:00
register.c register: display register prefix (name) since it is available 2017-06-04 18:42:55 +03:00
reset.c
stream.c
sysbus.c sysbus: Set user_creatable=false by default on TYPE_SYS_BUS_DEVICE 2017-05-17 10:37:01 -03:00
uboot_image.h