billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=7f4d891610c8b4f05c94734b4d86cb5cb9767a3e
commit 7f4d891610c8b4f05c94734b4d86cb5cb9767a3e Author: Boris Faure <[email protected]> Date: Wed Jul 10 23:14:53 2019 +0200 termiointernals: no out-of-band read when selecting empty lines --- src/bin/termiointernals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/termiointernals.c b/src/bin/termiointernals.c index 97fbe99..322c70f 100644 --- a/src/bin/termiointernals.c +++ b/src/bin/termiointernals.c @@ -409,7 +409,7 @@ _sel_line(Termio *sd, int cy) for (;;) { cells = termpty_cellrow_get(sd->pty, y - 1, &w); - if (!cells || !cells[w-1].att.autowrapped) + if (!cells || w <= 0 || !cells[w-1].att.autowrapped) break; y--; } --
