load_uboot_image: don't assume a full header read
commita18e93125de1ce8caf1d6c00cc7f6f0c96f7854f
authorAndrew Jones <drjones@redhat.com>
Fri, 2 Jun 2017 10:51:46 +0000 (2 11:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:46 +0000 (2 11:51 +0100)
treedea4903fc96d394e382de2298dd5e0fda9539579
parent993063fbb531d11f7ede59e5264308eafa6ee4ff
load_uboot_image: don't assume a full header read

Don't allow load_uboot_image() to proceed when less bytes than
header-size was read.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-id: 20170524091315.20284-1-drjones@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/core/loader.c