diff options
author | Kevin Chiu <Kevin.Chiu@quantatw.com> | 2018-10-03 10:12:44 +0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-10-04 15:25:53 +0000 |
commit | 0fa007be131f161bbc4c7b7422e53dd702361638 (patch) | |
tree | 7fb6fb87e672592ca353c8f544b55430be70fe51 | |
parent | 59e923d75791bad6980a634f4762d295405c6a07 (diff) |
google/grunt: Correctly extract OEM string from CBFS
In CBFS layout:
oem.bin size is 10 bytes.
In cbfs_boot_load_file, buffer size will need to be larger
than decompressed_size, otherwise CBFS data can not be
extracted into buffer.
Then we need to check buffer whether it's empty string separately.
BUG=b:79874904
BRANCH=master
TEST=emerge-grunt coreboot
Change-Id: I4f1bbb690ecca515ac920f5058ee19b5bfd8fa5e
Signed-off-by: Kevin Chiu <Kevin.Chiu@quantatw.com>
Reviewed-on: https://review.coreboot.org/28889
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r-- | src/mainboard/google/kahlee/variants/baseboard/mainboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c index d60023fa7c..d1a349283e 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c +++ b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c @@ -79,7 +79,7 @@ void board_bh720(struct device *dev) const char *smbios_mainboard_manufacturer(void) { - static char oem_bin_data[10]; + static char oem_bin_data[11]; static const char *manuf; if (!IS_ENABLED(CONFIG_USE_OEM_BIN)) |