Commit 72b80edb authored by Amin Hassani's avatar Amin Hassani Committed by chrome-bot
Browse files

update_payload: Fix problem with signature size on unsigned payloads

If the payload is unsigned (e.g. for test image), then the checker.sigs_file
would not exist. So check for that variable before using it.

BUG=chromium:794404
BUG=chromium:914705
TEST=manually signing the payload ran update_payload_check with signed and
unsigned image
TEST=unittests

Change-Id: I871137eadef00d012ee926d12fd4eee36a454487
Reviewed-on: https://chromium-review.googlesource.com/1375023


Commit-Ready: Amin Hassani <ahassani@chromium.org>
Tested-by: default avatarAmin Hassani <ahassani@chromium.org>
Reviewed-by: default avatarSen Jiang <senj@chromium.org>
parent 8ea1957b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment