GNOME Bugzilla – Bug 665261
browser-plugin: Make sure to use the UTF8Length parameter
Last modified: 2011-12-08 16:51:17 UTC
WebKit-based browsers like Chromium seem to need this, otherwise at random times the plugin will fail to do a task.
Created attachment 202496 [details] [review] browser-plugin: Make sure to use the UTF8Length parameter Some plugin hosts may have junk after the UTF8Characters that we need to strip off. WebKit-based browsers like Chromium seem to need this.
Review of attachment 202496 [details] [review]: To me that sounds like a browser bug but OTOH the fix looks reasonable.
Pushed. (git bz didn't work)
+ gchar *uuid_str = g_strndup (uuid.UTF8Characters, uuid.UTF8Length); if (!uuid_is_valid (uuid_str)) return FALSE; You're leaking the string when taking the FALSE return.
Created attachment 202941 [details] [review] browser-plugin: Fix memory leak when passing an invalid UUID Because I'm a moron, apparently.
Attachment 202941 [details] pushed as 02af8eb - browser-plugin: Fix memory leak when passing an invalid UUID Pushed after IRC review.