Home
last modified time | relevance | path

Searched hist:"6 cd5678c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/tools/
H A Dkwbimage.c6cd5678c Thu Mar 15 05:14:19 CDT 2018 Alexander Graf <agraf@suse.de> kwbimage: Fix out of bounds access

The kwbimage format is reading beyond its header structure if it
misdetects a Xilinx Zynq image and tries to read it. Fix it by
sanity checking that the header we want to read fits inside our
file size.

Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>