Ondrej Holy 30e102518a gcontenttype: Make filename valid utf-8 string before processing
The `g_content_type_guess_for_tree` function segfaults currently when
processing filenames that are not valid unicode strings. Let's use the
`g_filename_to_utf8` and `g_utf8_make_valid` functions before other
processing to prevent that.

Let's also add a test for it to avoid this in future.

Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3168
2023-11-13 12:14:01 +00:00
..
2023-11-06 15:04:01 +03:00
2023-05-02 13:42:54 +02:00
2023-01-27 11:58:56 +03:00
2023-11-06 15:04:01 +03:00
2020-11-17 15:50:07 +00:00