Open qarmin opened 2 years ago
Also a bug in GTK
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 41f824610d..f1a7ddf114 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -6390,6 +6390,7 @@ gtk_icon_view_set_drag_dest_item (GtkIconView *icon_view,
*/
g_return_if_fail (GTK_IS_ICON_VIEW (icon_view));
+ g_return_if_fail (GTK_IS_TREE_MODEL (icon_view->priv->model));
if (icon_view->priv->dest_item)
{
Is at least part of the fix but there seem to be more code in there that assumes the existence of the model.
Bug description
cause crash:
Issue found by fuzzer - https://github.com/qarmin/gtk-rs-fuzzer