u-boot/drivers/video
Anatolij Gustschin 74446b63dd cfb_console: fix RLE bitmap drawing code
There seems to be tools producing incorrect 'end of bitmap data'
markers '0100' in a RLE bitmap. Drawing such bitmaps can result
in overwriting memory above the frame buffer. E.g. on MPC5121e
based boards this memory can contain U-Boot environment.

We may not rely on the correct end of bitmap data marker 0001
only, but also have to check whether we are going to draw a
valid frame buffer scan line.

The patch provides a fix by maintaining a pixel counter
which is incremented by the amount of pixels we are going
to draw. If the counter exceeds frame buffer pixels limit
we stop the drawing with the error message.

Reported-by: Michael Weiss <michael.weiss@ifm.com>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Tested-by: Anatolij Gustschin <agust@denx.de>
2011-04-28 21:30:46 +02:00
..
amba.c video: add amba-clcd prime-cell 2010-01-27 21:23:14 +01:00
ati_ids.h drivers/video : move video drivers to drivers/video 2007-11-25 18:35:11 +01:00
ati_radeon_fb.c video: ati_radeon_fb.c: fix warning while compiling with DEBUG 2010-04-08 15:59:16 +02:00
ati_radeon_fb.h ati_radeon: Support PCI virtual not eq bus mapping. 2010-04-08 15:30:47 +02:00
atmel_lcdfb.c atmel_lcd: Allow contrast polarity to be either positive or negative 2010-09-25 15:22:51 +02:00
bus_vcxk.c convert common files to new SoC access 2010-02-12 12:31:55 -06:00
cfb_console.c cfb_console: fix RLE bitmap drawing code 2011-04-28 21:30:46 +02:00
ct69000.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
fsl_diu_fb.c video: move fsl_diu_fb driver to drivers/video 2010-12-01 20:48:13 +01:00
ipu.h MX51: Add IPU driver for video support 2010-10-22 00:05:05 +02:00
ipu_common.c MX51: Add IPU driver for video support 2010-10-22 00:05:05 +02:00
ipu_disp.c MX51: Add IPU driver for video support 2010-10-22 00:05:05 +02:00
ipu_regs.h MX51: Add IPU driver for video support 2010-10-22 00:05:05 +02:00
Makefile video: move fsl_diu_fb driver to drivers/video 2010-12-01 20:48:13 +01:00
mb86r0xgdc.c video: add support for display controller in MB86R0x SoCs 2010-08-10 23:14:21 +02:00
mb862xx.c video: mb862xx: add option CONFIG_VIDEO_MB862xx_ACCEL for 32bpp mode 2009-10-31 12:16:29 +01:00
mx3fb.c IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers 2011-04-27 19:38:05 +02:00
mxc_ipuv3_fb.c MX51: Add video support 2010-10-22 00:05:05 +02:00
mxcfb.h MX51: Add video support 2010-10-22 00:05:05 +02:00
s6e63d6.c A driver for the S6E63D6 SPI display controller from Samsung 2009-02-24 10:00:28 +01:00
sed156x.c video: Clean drivers/video/Makefile 2008-08-18 23:36:17 +02:00
sed13806.c video: Clean drivers/video/Makefile 2008-08-18 23:36:17 +02:00
sm501.c video: sm501.c: add weak default functions 2010-06-14 12:29:34 +02:00
smiLynxEM.c Fix whitespace damage: double space changed to a tab 2009-02-11 23:03:41 +01:00
videomodes.c rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
videomodes.h rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00