diff options
author | Anatolij Gustschin <agust@denx.de> | 2011-02-21 23:33:29 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-04-28 23:30:46 +0400 |
commit | 74446b63dd4ec386fc5de554d5c4a3536096072f (patch) | |
tree | 43e21408379b18a47ca04285a0ac178c639a1429 /doc/README.video | |
parent | a000b7950da938d2df37ec5e081cd0680e6e4bbe (diff) | |
download | u-boot-74446b63dd4ec386fc5de554d5c4a3536096072f.tar.xz |
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 'doc/README.video')
0 files changed, 0 insertions, 0 deletions