GNOME Bugzilla – Bug 703963
Crash when escaping some song titles
Last modified: 2013-07-11 09:16:25 UTC
g_markup_escape_text() expects the length of the string in bytes, but the length reported by get_title().length is the number of characters. This makes it crash with titles like "Io scriverò" (char length = 11, utf8 byte length = 12). Assuming the title to be null-terminated fixes the issue. I'm not sure whether getAlbumSongs always returns null-terminated strings. If not, probabily it should be fixed to do that.
Created attachment 248858 [details] [review] Fix crash in escaping some song titles
Cannot reproduce it right now, but it seems to be similar to https://git.gnome.org/browse/gnome-music/commit/?id=6129c635 Thanks for the patch The following fix has been pushed: e7bb4a3 Fix crash in escaping some song titles
Created attachment 248910 [details] [review] Fix crash in escaping some song titles