Attached is a fix for a crash when searching and non-utf8 compliant data is returned.
To reproduce : Search for text "link" causes a crash in g_markup_printf_escaped
Problem : g_markup_printf_escaped expects valid utf8 - but currently the data is not checked for utf8 validity.
Sample invalid data : "Penguin | Ping\xfcino"
Tested on : Ubuntu 12.04.
Attached is a fix for a crash when searching and non-utf8 compliant data is returned.
To reproduce : Search for text "link" causes a crash in g_markup_ printf_ escaped printf_ escaped expects valid utf8 - but currently the data is not checked for utf8 validity.
Problem : g_markup_
Sample invalid data : "Penguin | Ping\xfcino"
Tested on : Ubuntu 12.04.