UPSTREAM: util/broadcom: Add two more NULL checks
Change-Id: I088730fd87dd39fa2c36a06c5770fad05a5808b0 Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Found-by: Coverity Scan #1323511, #1323512 Original-Reviewed-on: https://review.coreboot.org/17882 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Martin Roth <martinroth@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/421216 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
07f561c2cb
commit
02ba75a7c6
1 changed files with 10 additions and 0 deletions
|
|
@ -109,6 +109,16 @@ int CreateSecureBootImage(int ac, char **av)
|
|||
--ac, ++av;
|
||||
}
|
||||
|
||||
if (!bl) {
|
||||
puts("-bl not set");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!privkey) {
|
||||
puts("-hmac not set");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (stat(bl, &file_stat) == -1) {
|
||||
puts("Can't stat bl");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue