diff options
author | Bastian Stender <bst@pengutronix.de> | 2017-02-27 14:39:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-28 07:44:59 +0100 |
commit | 1e2f65d72a66da459227d5fdc165b2f02ce7f186 (patch) | |
tree | eb1cfb9e1e9a6e7bab9562d3b9ac5d58892480d9 /common/console.c | |
parent | 41c3c713c4ddbf44d89076257f0dd9ec94858b88 (diff) | |
download | barebox-1e2f65d72a66da459227d5fdc165b2f02ce7f186.tar.gz barebox-1e2f65d72a66da459227d5fdc165b2f02ce7f186.tar.xz |
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>
Diffstat (limited to 'common/console.c')
0 files changed, 0 insertions, 0 deletions