]> git.ipfire.org Git - thirdparty/grub.git/commit
video/readers/jpeg: Abort sooner if a read operation fails
authorDaniel Axtens <dja@axtens.net>
Mon, 28 Jun 2021 04:16:14 +0000 (14:16 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:32 +0000 (16:39 +0200)
commitd5caac8ab79d068ad9a41030c772d03a4d4fbd7b
treed6dc4d720fcc0716852cac9b44454afeab6737a7
parent690bee69fae6b4bd911293d6b7e56774e29fdf64
video/readers/jpeg: Abort sooner if a read operation fails

Fuzzing revealed some inputs that were taking a long time, potentially
forever, because they did not bail quickly upon encountering an I/O error.

Try to catch I/O errors sooner and bail out.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/video/readers/jpeg.c