diff options
| author | Pali Rohár <[email protected]> | 2021-07-23 11:14:15 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-07-31 09:49:31 +0200 |
| commit | a18ae18a59615b1e7ff82bcf2d5740e2adbf6165 (patch) | |
| tree | e64b30e6ef7c0c075480f337e4614016aa262425 /scripts | |
| parent | a107c61b4180fb5bfe7d0044a25d6db829b8b00f (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 <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
