evas_textblock: Avoid dereferencing out-of-bounds element
authorDaniel Willmann <d.willmann@samsung.com>
Tue, 2 Apr 2013 17:45:53 +0000 (18:45 +0100)
committerDaniel Willmann <d.willmann@samsung.com>
Tue, 2 Apr 2013 17:57:43 +0000 (18:57 +0100)
commit1cb5a8f63ab818c3cbf32142d99996fb80a7ad13
tree012b3eec15daec1a722d76b76df81fc58c548ef2
parent3e43ad338d43dbe03dc401910d378aa32d84b8a7
evas_textblock: Avoid dereferencing out-of-bounds element

Address sanitizer found this. Not really a serious error as text[i] will
be 0 in that case (I believe) and the loop is aborted in any case.

Still, better safe than sorry.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/lib/evas/canvas/evas_object_textblock.c