GNOME Bugzilla – Bug 669909
[PATCH] Check that convert_text() succeeded
Last modified: 2012-02-12 11:39:54 UTC
validate_and_insert() does not allow its `buffer` parameter to be NULL. If convert_text() fails, then `outbuf` will be NULL and validate_and_insert() will be called with a NULL `buffer`.
Created attachment 207365 [details] [review] Fix
Created attachment 207366 [details] [review] Fix Oops. Should also return FALSE if convert_text() failed.
Nice catch! I wonder if this could explain some of the occasional crashes related to encode handling... Applied!