]> Git Repo - J-u-boot.git/commit
kwbimage: Fix out of bounds access
authorAlexander Graf <[email protected]>
Thu, 15 Mar 2018 10:14:19 +0000 (11:14 +0100)
committerStefan Roese <[email protected]>
Fri, 30 Mar 2018 10:52:48 +0000 (12:52 +0200)
commit6cd5678c45e7b684e7af88c256cdacd03a76fb1c
treeccca6ff3c9f538a804054b7dae0880fccb6657c6
parentbc8cb152d8fbea100023917c285129a6d9ccc3ba
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 <[email protected]>
Tested-by: Michal Simek <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
tools/kwbimage.c
This page took 0.034263 seconds and 4 git commands to generate.