coreboot-kgpe-d16/util/fuzz-tests
Nico Huber 99eee16a13 Center bootsplash on bigger framebuffers
In the JPEG decoder, use `bytes_per_line` instead of `width` for
address calculations, to allow for bigger framebuffers. When
calling jpeg_decode(), add an offset to the framebuffer address
so the picture gets centered.

Change-Id: I0174bdccfaad425e708a5fa50bcb28a1b98a23f7
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76424
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2023-07-17 14:49:04 +00:00
..
jpeg-test-cases
Makefile
README
description.md
jpeg-test.c Center bootsplash on bigger framebuffers 2023-07-17 14:49:04 +00:00

README

Fuzz tests
==========
make run (with afl-fuzz installed) takes a real long time and creates test
cases in jpeg-results/ that crash the jpeg code.

These test cases can then be used to gdb the test app and dig into the
decoder to fix the issues.

This is mostly a proof of concept because the jpeg code isn't used very often
(only for splash screens). However there are other regions in coreboot that
could benefit from similar treatment.