coreboot-kgpe-d16/payloads
You-Cheng Syu 5ec1d24974 libpayload: cbfs: Require input size and output size for cbfs_decompress
Currently, cbfs_decompress() calls ulzma() and ulz4f() for LZMA/LZ4
decompression. These two functions don't accept input/output size as
parameters. We can make cbfs_decompress more robust by calling ulzman()
and ulz4fn() instead. This could prevent us from overflowing destination
buffer.

BUG=none
BRANCH=none
TEST=boot into kernel on Kukui with COMPRESSED_PAYLOAD_LZMA /
     COMPRESSED_PAYLOAD_LZ4.

Change-Id: Ibe617825bd000ed618791d8e3c5f65bbbd5f7e33
Signed-off-by: You-Cheng Syu <youcheng@google.com>
Reviewed-on: https://review.coreboot.org/c/31606
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
2019-02-28 13:56:26 +00:00
..
bayou payloads: Remove/fix trailing whitespace 2018-09-04 12:38:40 +00:00
coreinfo payloads/coreinfo/cbfs_module.c: Get rid of void pointer math 2018-11-06 01:46:47 +00:00
external payloads/tianocore: default to MrChromebox's working branch 2019-02-26 11:13:11 +00:00
libpayload libpayload: cbfs: Require input size and output size for cbfs_decompress 2019-02-28 13:56:26 +00:00
linuxcheck rampayload: Add the linuxcheck payload 2018-09-14 09:59:17 +00:00
nvramcui payloads/nvramcui/payload.sh: Fix shellcheck warnings 2018-01-24 23:01:35 +00:00
Kconfig payloads: Only show supported payloads in menuconfig 2018-10-09 11:29:52 +00:00
Makefile.inc payloads/external: Add yabits payload 2018-09-16 13:10:17 +00:00