[gnome-terminal] screen: Fix memory corruption problem
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] screen: Fix memory corruption problem
- Date: Tue, 15 Dec 2015 19:51:37 +0000 (UTC)
commit 48457f4d915c5df9bccc78c61063563de1ea1883
Author: Christian Persch <chpe gnome org>
Date: Tue Dec 15 20:51:25 2015 +0100
screen: Fix memory corruption problem
The memory passed must be zeroed first, or we'll crash later
when g_free()ing the matches.
src/terminal-screen.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 6caaf47..8d69f27 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1937,6 +1937,7 @@ terminal_screen_check_extra (TerminalScreen *screen,
gboolean flavor_number_found = FALSE;
matches = g_newa (char *, n_extra_regexes);
+ memset(matches, 0, sizeof(char*) * n_extra_regexes);
if (
#ifdef WITH_PCRE2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]