From 1d48b7b77c69ca518d0bbdc079ca3736311b9c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 23 Apr 2022 12:35:07 +0200 Subject: [PATCH] =?UTF-8?q?search:=20matches=5Fnext:=20assert=20start?= =?UTF-8?q?=E2=80=99s=20=E2=80=98col=E2=80=99=20is=20valid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search.c b/search.c index 337db697..73f831eb 100644 --- a/search.c +++ b/search.c @@ -548,6 +548,8 @@ search_matches_next(struct search_match_iterator *iter) else { xassert(iter->start.row >= 0); xassert(iter->start.row < term->rows); + xassert(iter->start.col >= 0); + xassert(iter->start.col < term->cols); struct coord abs_start = iter->start; abs_start.row = grid_row_absolute_in_view(grid, abs_start.row);