]> git.ipfire.org Git - thirdparty/u-boot.git/commit
kwbimage: Fix out of bounds access
authorAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2018 10:14:19 +0000 (11:14 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 06:57:39 +0000 (08:57 +0200)
commitfccde618fc180baafbbb265ac787a4486307655c
treee9ed290971a8bb03ec948704932e35b23d757eb1
parent949e5cb9a736bac32ea8886e3953da55bdd30754
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>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tools/kwbimage.c