Skip to content
Snippets Groups Projects
  1. Nov 12, 2022
    • Alec Brown's avatar
      video/readers: Add artificial limit to image dimensions · 85856560
      Alec Brown authored
      
      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: default avatarAlec Brown <alec.r.brown@oracle.com>
      Reviewed-by: default avatarDarren Kenny <darren.kenny@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      85856560
  2. Sep 18, 2022
  3. Sep 14, 2022
  4. Aug 23, 2022
  5. Jul 30, 2022
  6. Jun 10, 2022
  7. Jun 08, 2022
Loading