commit | 72b80edb1ef2db08564929549eb8d7a1e0b24542 | [log] [tgz] |
---|---|---|
author | Amin Hassani <ahassani@chromium.org> | Wed Dec 12 23:15:30 2018 -0800 |
committer | chrome-bot <chrome-bot@chromium.org> | Sat Dec 15 12:39:13 2018 -0800 |
tree | 56c720f34528c0169a11a51c1fb9f2af92469547 | |
parent | 8ea1957b8bd6b58ffd7d04d2f0d2d6ff6823c368 [diff] |
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: Amin Hassani <ahassani@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>