From 2c35acff7b65bd7b794e72c43e3056d113686307 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 11 Jan 2017 17:15:55 +0000 Subject: [PATCH] gregex: Fix an assignment-after-free error The match_info is freed just above this line, so this would result in a write to freed memory. Spotted by Leslie Zhai . https://bugzilla.gnome.org/show_bug.cgi?id=777077 --- glib/gregex.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib/gregex.c b/glib/gregex.c index 76a5104db..a9f6814e2 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -2294,7 +2294,6 @@ g_regex_split_full (const GRegex *regex, { g_propagate_error (error, tmp_error); g_list_free_full (list, g_free); - match_info->pos = -1; return NULL; }