summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2024-08-13 22:29:21 +1000
committerNico Huber <nico.h@gmx.de>2024-08-19 12:32:21 +0000
commitefad423f8472c1b9c130842e3d92625500f82d5d (patch)
tree99422f036fe712209b6d8aea1076c562bc469a81 /src/security
parentb598d05d389e137baa10e277a37fca2c363fb295 (diff)
lib/jpeg: avoid calling malloc and free
Since commit 1d029b40c9de ("lib/jpeg: Replace decoder with Wuffs' implementation"), a relatively large heap allocation is needed to decode many JPEGs for use as work area. The prior decoder did not need this, but also had many limitations in the JPEGs it could decode, was not as memory-safe and quickly crashed under fuzzing. This commit keeps using Wuffs' JPEG decoder, but it no longer requires any heap allocation (and thus configuring the heap size depending on how big a bootsplash image you want to support). Change-Id: Ie4c52520cbce498539517c4898ff765365a6beba Signed-off-by: Nigel Tao <nigeltao@golang.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83895 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Jonathon Hall <jonathon.hall@puri.sm>
Diffstat (limited to 'src/security')
0 files changed, 0 insertions, 0 deletions