fbconsole: check cursor position before moving
Moving the cursor to x=2, y=2 with "\e[3;3H" on a 12x2 framebuffer
console lead to a barebox crash while drawing the cursor. If the
cursor position is out of bounds clip the cursor to the corresponding
edge.

Signed-off-by: Bastian Stender <bst@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 41c3c71 commit 1e2f65d72a66da459227d5fdc165b2f02ce7f186
@Bastian Stender Bastian Stender authored on 27 Feb 2017
Sascha Hauer committed on 28 Feb 2017
Showing 1 changed file
View
drivers/video/fbconsole.c