summaryrefslogtreecommitdiff
path: root/scripts/kernel-doc
diff options
context:
space:
mode:
authorPali Rohár <[email protected]>2021-07-23 11:14:00 +0200
committerStefan Roese <[email protected]>2021-07-31 09:49:31 +0200
commit4efbf1c3273788b83dd1f7646d26ce9950e4b4dc (patch)
tree183b2165aa7e17243a4c5ddf2bd057c988d084a0 /scripts/kernel-doc
parent501a54a29cc20ce7df70f290fa274b8e2ea9d6f4 (diff)
tools: kwbimage: Don't crash when binary file name does not contain '/'
In the case when the file name is specified relative to the current working directory, it does not contain '/' character and strrchr() returns NULL. The following strcmp() function then crashes on NULL pointer dereference. Signed-off-by: Pali Rohár <[email protected]> Reviewed-by: Marek Behún <[email protected]> Reviewed-by: Stefan Roese <[email protected]> Reviewed-by: Chris Packham <[email protected]> Tested-by: Chris Packham <[email protected]>
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions