GNOME Bugzilla – Bug 736630
gio/gresource.c:do_lookup check for terminating "/"
Last modified: 2018-05-24 17:01:19 UTC
The code fragment... path_len = strlen (path); if (path[path_len-1] == '/') { path = free_path = g_strdup (path); free_path[path_len-1] = 0; } ...fails to work as intended when path = "". It could, potentially, write to memory it does not own. A check for path_len==0 should be added.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/927.