File glib2-CVE-2026-1485.patch of Package glib2.42479

diff -urp glib-2.78.6.orig/gio/gcontenttype.c glib-2.78.6/gio/gcontenttype.c
--- glib-2.78.6.orig/gio/gcontenttype.c	2024-05-08 12:53:54.000000000 -0500
+++ glib-2.78.6/gio/gcontenttype.c	2026-01-27 14:58:17.774059998 -0600
@@ -1021,7 +1021,7 @@ tree_match_free (TreeMatch *match)
 static TreeMatch *
 parse_header (gchar *line)
 {
-  gint len;
+  size_t len;
   gchar *s;
   TreeMatch *match;
 
openSUSE Build Service is sponsored by