commit | 22e87fca463933e4b47f4721a1f816118d4e6f58 | [log] [tgz] |
---|---|---|
author | Alexander Graf <agraf@suse.de> | Thu Mar 15 11:14:19 2018 +0100 |
committer | Stefan Roese <sr@denx.de> | Fri Mar 30 12:52:48 2018 +0200 |
tree | ccca6ff3c9f538a804054b7dae0880fccb6657c6 | |
parent | b183c35299e6cc2f79b25278182871b03a561231 [diff] |
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>