grub2/docs
Alec Brown 85856560d5 video/readers: Add artificial limit to image dimensions
In grub-core/video/readers/jpeg.c, the height and width of a JPEG image don't
have an upper limit for how big the JPEG image can be. In Coverity, this is
getting flagged as an untrusted loop bound. This issue can also seen in PNG and
TGA format images as well but Coverity isn't flagging it. To prevent this, the
constant IMAGE_HW_MAX_PX is being added to include/grub/bitmap.h, which has
a value of 16384, to act as an artificial limit and restrict the height and
width of images. This value was picked as it is double the current max
resolution size, which is 8K.

Fixes: CID 292450

Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-11-12 22:51:49 +00:00
..
man Restore grub-mkdevicemap 2021-09-24 22:18:39 +01:00
autoiso.cfg * docs/autoiso.cfg: New file. 2013-10-27 20:34:24 +01:00
fdl.texi 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> 2008-03-01 17:27:51 +00:00
font_char_metrics.png GRUB developper manual based on existing Internals section and 2011-04-03 15:30:28 +02:00
font_char_metrics.txt GRUB developper manual based on existing Internals section and 2011-04-03 15:30:28 +02:00
grub-dev.info Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
grub-dev.texi minilzo: Update to minilzo-2.10 2021-11-29 00:07:08 +00:00
grub.cfg * docs/grub.cfg: Update. 2012-05-04 00:30:15 +02:00
grub.info Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
grub.info-1 Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
grub.info-2 Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
grub.texi video/readers: Add artificial limit to image dimensions 2022-11-12 22:51:49 +00:00
Makefile.am Fix make dist. 2012-02-28 12:58:57 +01:00
Makefile.in Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
mdate-sh 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org> 2008-03-01 17:27:51 +00:00
osdetect.cfg * docs/osdetect.cfg: Add isolinux config to detected OSes. 2013-12-18 05:34:17 +01:00
stamp-1 Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
stamp-vti Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
texinfo.tex remove all trailing whitespace 2009-06-10 21:04:23 +00:00
version-dev.texi Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00
version.texi Import grub2_2.06.orig.tar.xz 2021-09-24 10:34:42 +01:00