GNOME Bugzilla – Bug 634182
SIGSEGV in unique_message_data_get_text
Last modified: 2011-03-27 09:01:01 UTC
If message_data.data contains NULL, this function call g_utf8_validate with NULL and it crashes with SIGSEGV Quick & dirty patch attached
Created attachment 173959 [details] [review] patch
Review of attachment 173959 [details] [review]: ::: libunique-1.1.6.orig/unique/uniquemessage.c @@ +302,3 @@ + if(!message_data->data) return NULL; + please, follow the coding style of libunique; it is the same as the GTK+ coding style.
Sorry, it was just quick'n'dirty hack to make totem player work. And, because I don't know english well enough I decided to post the code instead of explanation.. :)
Thanks, ended up rewriting the patch using the length field instead of checking for NULL.