Skip to content
Snippets Groups Projects
Commit 6cd5678c authored by Alexander Graf's avatar Alexander Graf Committed by Stefan Roese
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
Tested-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent bc8cb152
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment