Files
u-boot/drivers
eric.gao@rock-chips.com 7682736c89 video: Fix crash when scroll screen
After enabling log printing to lcd, when the screen starts
scrolling, system crashes. Log is shown as bellow:

    "Synchronous Abort" handler, esr 0x96000045
    "Synchronous Abort" handler, esr 0x96000045

Checking the source code, we found that the variable "pixels"
gets a wrong value:

    int pixels = VIDEO_FONT_HEIGHT * vid_priv->line_length;

"pixels" here means the value of pixels for a character, rather
than the bytes for a character. So the variable "pixels" is 4
times bigger than it's exact value, which will cause the memory
overflow when the cpu runs the following code:

    for (i = 0; i < pixels; i++)
        *dst++ = clr; <<----

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
2017-04-14 16:11:38 +02:00
..
2017-04-05 13:52:01 -04:00
2016-10-19 09:01:51 +02:00
2017-01-10 10:18:11 +01:00
2016-01-27 15:32:05 +01:00
2017-04-04 09:18:57 -04:00
2017-03-26 13:22:58 -06:00
2016-02-06 12:00:59 +01:00
2017-04-05 13:52:01 -04:00
2017-01-02 17:08:25 +01:00
2017-04-14 16:11:38 +02:00