grub2/grub-core/video
Daniel Axtens 8338a8238f video/readers/jpeg: Don't decode data before start of stream
When a start of stream marker is encountered, we call grub_jpeg_decode_sos()
which allocates space for a bitmap.

When a restart marker is encountered, we call grub_jpeg_decode_data() which
then fills in that bitmap.

If we get a restart marker before the start of stream marker, we will
attempt to write to a bitmap_ptr that hasn't been allocated. Catch this
and bail out. This fixes an attempt to write to NULL.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-03-02 15:54:18 +01:00
..
coreboot coreboot: Split parts that are platform-independent. 2017-05-08 19:10:24 +02:00
emu calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
fb video/fb/video_fb: Fix possible integer overflow 2021-03-02 15:54:17 +01:00
i386/pc calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
readers video/readers/jpeg: Don't decode data before start of stream 2021-03-02 15:54:18 +01:00
bitmap_scale.c bitmap_scale: Optimize by moving division out of the loop. 2015-02-26 18:13:36 +01:00
bitmap.c malloc: Use overflow checking primitives where we do complex allocations 2020-07-29 16:55:47 +02:00
bochs.c video/bochs: Fix typo 2020-09-11 15:45:56 +02:00
capture.c calloc: Use calloc() at most places 2020-07-29 16:55:47 +02:00
cirrus.c Document intentional fallthroughs. 2015-01-27 17:17:58 +01:00
colors.c Detach optional parts of gfxterm and integrate in with coreboot init. 2013-05-31 00:42:33 +02:00
efi_gop.c video/efi_gop: Remove unnecessary return value of grub_video_gop_fill_mode_info() 2021-03-02 15:54:17 +01:00
efi_uga.c efi/uga: Use video instead of fb as debug condition 2020-03-10 21:41:38 +01:00
ieee1275.c i386, x86_64, ppc: fix switch fallthrough cases with GCC7 2017-04-04 19:23:55 +03:00
radeon_fuloong2e.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
radeon_yeeloong3a.c Add Radeon Yeeloong 3A support. 2013-12-17 22:52:04 +01:00
sis315_init.c Fuloong video init support. 2011-05-16 02:34:58 +02:00
sis315pro.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
sm712_init.c merge with mainline 2010-08-19 16:54:00 +05:30
sm712.c * grub-core/gfxmenu/gui_box.c: Updated to work with area status. 2013-11-08 15:42:38 +04:00
video.c video: skip 'text' gfxpayload if not supported, to fallback to default 2019-05-20 13:00:44 +02:00