tsm: screen: fix out-of-bounds access when drawing sb
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 10:46:09 +0000 (12:46 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 1 Oct 2012 10:46:09 +0000 (12:46 +0200)
commit79692f655a507a7bc473dd3846d175ddcb48d85d
tree4781dcbc5b025d72287c8856c1825138f8c3333b
parent038aac7fd52c08ba46af8d781498819c59a04b8f
tsm: screen: fix out-of-bounds access when drawing sb

When drawing scroll-back buffer, we cannot guarantee that the lines are as
long as the current screen. Therefore, check that we aren't accessing out
of bounds and draw empty glyphs instead.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/tsm_screen.c