[vte] Bug 590824 – gnome-terminal crashed with SIGSEGV after hiting ctrl+o



commit 41e1e01046e2bc0f9cfbc84c2f41430c9a9a9743
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 12 16:16:09 2009 -0400

    Bug 590824 â?? gnome-terminal crashed with SIGSEGV after hiting ctrl+o

 src/vte.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b0971c7..6472db4 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -2953,6 +2953,8 @@ _vte_terminal_cleanup_tab_fragments_at_cursor (VteTerminal *terminal)
 		num_columns = cell->attr.columns;
 		for (i = 0; i < num_columns; i++) {
 			cell = _vte_row_data_find_charcell(row, col++);
+			if (G_UNLIKELY (!cell))
+			  break;
 			*cell = screen->fill_defaults;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]