u-boot/drivers
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
..
bios_emulator Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
block Replace obsolete e-mail address 2011-04-27 19:38:09 +02:00
dma Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
fpga add Xilinx_abort_fn to Xilinx_Spartan3_Slave_Serial_fns 2010-11-30 21:59:21 +01:00
gpio IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers 2011-04-27 19:38:05 +02:00
hwmon Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
i2c Replace obsolete e-mail address 2011-04-27 19:38:09 +02:00
input Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
misc powerpc/8xxx: Fix LAW init to respect pre-initialized entries 2011-04-04 09:24:41 -05:00
mmc MMC may wrongly regconize 2GB eMMC as high capacity 2011-04-13 07:09:04 -05:00
mtd ftsmc020: move ftsmc020 static mem controller to driver/mtd 2011-04-27 19:38:10 +02:00
net tsec: Convert tsec to use PHY Lib 2011-04-20 15:09:34 -05:00
pci fsl_pci: Add support for FSL PCIe controllers v2.x 2011-04-04 09:24:41 -05:00
pcmcia Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
power ftpmu010: fix relocation and enhance features 2011-04-27 19:38:08 +02:00
qe fsl: Change fsl_phy_enet_if to phy_interface_t 2011-04-20 15:09:35 -05:00
rtc rtc, rv3029: add trickle charger support. 2011-04-26 00:24:40 +02:00
serial IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers 2011-04-27 19:38:05 +02:00
spi Merge branch 'master' of git://git.denx.de/u-boot-arm 2011-04-27 21:48:09 +02:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb IMX: MX31: Cleanup include files and drop nasty #ifdef in drivers 2011-04-27 19:38:05 +02:00
video cfb_console: fix RLE bitmap drawing code 2011-04-28 21:30:46 +02:00
watchdog ftwdt010_wdt: move header to include/faraday and enhance 2011-04-12 22:58:33 +02:00