diff options
author | Manoj Gupta <manojgupta@google.com> | 2020-03-15 16:55:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-19 00:00:56 +0000 |
commit | 29ac143e2806182a4d25c6c6d41cda063d786807 (patch) | |
tree | 6e4cf23908cf54cbd281331c155ea65cf7c34820 | |
parent | 76f646088cfde89a2e041aa5aa55c4c6a51a6ea3 (diff) | |
download | vboot-29ac143e2806182a4d25c6c6d41cda063d786807.tar.gz |
vboot: Fix fuzzer build
LLD is complaining about the symbol vb2_check_padding present
in a discarded section. This is caused by multiple defintions
of vb2_check_padding being present (fuzzers & 2rsa.c) and the
definition in 2rsa.c also being used in the same file.
Fix by marking vb2_check_padding as weak.
BUG=chromium:1062665
TEST=Fuzzer builds work
BRANCH=none
Signed-off-by: Manoj Gupta <manojgupta@google.com>
Change-Id: Id1e2b69cdb35cbd127ba57881a70fc352ea2450a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2108483
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
-rw-r--r-- | firmware/2lib/2rsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/2lib/2rsa.c b/firmware/2lib/2rsa.c index 16edc26e..54b00b63 100644 --- a/firmware/2lib/2rsa.c +++ b/firmware/2lib/2rsa.c @@ -321,6 +321,7 @@ static const uint8_t sha512_tail[] = { * @param key Key to take signature and hash algorithms from * @return VB2_SUCCESS, or non-zero if error. */ +test_mockable vb2_error_t vb2_check_padding(const uint8_t *sig, const struct vb2_public_key *key) { |