diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-02-21 21:33:29 +0100 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-04-28 21:30:46 +0200 |
commit | 74446b63dd4ec386fc5de554d5c4a3536096072f (patch) | |
tree | 43e21408379b18a47ca04285a0ac178c639a1429 /include | |
parent | a000b7950da938d2df37ec5e081cd0680e6e4bbe (diff) | |
download | u-boot-imx-74446b63dd4ec386fc5de554d5c4a3536096072f.zip u-boot-imx-74446b63dd4ec386fc5de554d5c4a3536096072f.tar.gz u-boot-imx-74446b63dd4ec386fc5de554d5c4a3536096072f.tar.bz2 |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions