commit | 920a1202ad7afdda4f0110eb1c18f1a40ab36b9a | [log] [tgz] |
---|---|---|
author | Julius Werner <jwerner@chromium.org> | Tue Oct 13 16:58:01 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 16 01:34:10 2020 +0000 |
tree | e793ea094e84b99a0508ab7b1a4b80b38ca30bfc | |
parent | 662bb489d5061348d6eb61490185d0944d1ba817 [diff] |
lib: gpt_misc: Avoid leaving GPT entries data uninitialized If we fail reading a GPT header, we memset() the respective buffer to 0 to avoid operating on uninitialized bytes. We should do the same for the GPT entries array. BRANCH=None BUG=chromium:1137521 TEST=make runtests Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I1019eaf5e9ab05cd9953a15874f4931766952d88 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2469601 Reviewed-by: Joel Kitching <kitching@chromium.org>