mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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 <xiangzhai83@gmail.com>. https://bugzilla.gnome.org/show_bug.cgi?id=777077
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user