]> Git Repo - J-u-boot.git/commit
tools: mkimage: Check for datafile when type is script
authorAlex Kiernan <[email protected]>
Sun, 22 Apr 2018 05:11:17 +0000 (05:11 +0000)
committerTom Rini <[email protected]>
Sat, 28 Apr 2018 22:32:25 +0000 (18:32 -0400)
commit8c84287a0f225e29b688bda848e49a555c68a442
treec2526766a9f90779a71fe1b26100378eb37d5851
parentc3b115f4b7b05203da4233463a4fb87fa9c267ac
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: Alex Kiernan <[email protected]>
tools/mkimage.c
This page took 0.027626 seconds and 4 git commands to generate.