commit | a2656293b3c173b6daf3b394012a402dcb018d09 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Fri Jul 23 11:14:15 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Sat Jul 31 09:49:31 2021 +0200 |
tree | e64b30e6ef7c0c075480f337e4614016aa262425 | |
parent | f01adfdb858f0ce3245437889ca15ce11526e213 [diff] |
tools: dumpimage: Fix crashing when trying to extract data from kwbimage Trying to call the following command causes NULL pointer dereference in strlen(): ./tools/dumpimage -T kwbimage -o /tmp/out u-boot-spl.kwb Fix it by checking whether params->imagename is non-NULL before calling strlen(). Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de>