mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Merge branch 'wip/chergert/fix-6308' into 'main'
texthistory: fix potential NULL dereference Closes #6308 See merge request GNOME/gtk!6709
This commit is contained in:
commit
bc066de998
@ -1103,7 +1103,8 @@ gtk_text_history_modified_changed (GtkTextHistory *self,
|
||||
{
|
||||
if (peek->kind == ACTION_KIND_BARRIER)
|
||||
{
|
||||
if (!(peek = peek->link.next->data))
|
||||
if (peek->link.next == NULL ||
|
||||
!(peek = peek->link.next->data))
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user