switch-coreboot/payloads
Julius Werner d7c15e636c UPSTREAM: libpayload: lzma: Allocate scratchpad on the heap
Allocating a 15980-byte scratchpad on the stack when your default stack
size is set to 16KB is really not a great idea. We're regularly
overflowing into the end of our heap when using LZMA in libpayload, and
just happen not to notice it because the heap rarely gets filled up all
the way. Of course, since we always *have* a heap in libpayload, the
much saner solution is to just use it directly to allocate the
scratchpad rather than accidentally grow backwards into it anyway.

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/16089

Reviewed-by: Aaron Durbin <adurbin@chromium.org>

Change-Id: Ibe4f02057a32bd156a126302178fa6fcab637d2c
Reviewed-on: https://chromium-review.googlesource.com/368287
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-08-13 20:28:18 -07:00
..
bayou UPSTREAM: bayou: delete pbuilder utility 2016-08-04 23:36:49 -07:00
coreinfo UPSTREAM: payloads/coreinfo: Set KCONFIG_CONFIG value 2016-08-11 12:24:06 -07:00
external UPSTREAM: Use VBOOT_SOURCE instead of hardcoding vboot path 2016-08-12 18:28:03 -07:00
libpayload UPSTREAM: libpayload: lzma: Allocate scratchpad on the heap 2016-08-13 20:28:18 -07:00
nvramcui UPSTREAM: nvramcui: Update Makefile 2016-06-30 23:10:29 -07:00
Kconfig UPSTREAM: tint: Fix tint and add Kconfig option 2016-06-28 17:17:08 -07:00
Makefile.inc UPSTREAM: tint: Fix tint and add Kconfig option 2016-06-28 17:17:08 -07:00