Skip to content
Snippets Groups Projects
Commit 8c84287a authored by Alex Kiernan's avatar Alex Kiernan Committed by Tom Rini
Browse files

tools: mkimage: Check for datafile when type is script


If generating a script image and no datafile has been passed in, mkimage
dies with SIGSEGV:

  #0  __strchr_sse2 () at ../sysdeps/x86_64/multiarch/../strchr.S:32
  #1  0x0000000000403818 in main
      at tools/mkimage.c:503

Add explicit test for datafile to fix this.

Signed-off-by: default avatarAlex Kiernan <alex.kiernan@gmail.com>
parent c3b115f4
No related branches found
No related tags found
Loading
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