]> git.ipfire.org Git - thirdparty/grub.git/commit
video/readers/png: Abort sooner if a read operation fails
authorDaniel Axtens <dja@axtens.net>
Tue, 6 Jul 2021 04:02:55 +0000 (14:02 +1000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:32 +0000 (16:39 +0200)
commit5bff31cdb6b93d738f850834e6291df1d0b136fa
tree311206fd2e85eba6dbc206266f82da53ffdb09d6
parentf1ce0e15e70ea1aafcfa26ad93e7585f65783c6f
video/readers/png: 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/png.c