purple_normalize called on NULL string causes a crash
sulabh.dev at gmail.com
Fri Aug 28 17:08:35 EDT 2009
There are a few cases where purple_normalize() gets called with the string
argument set to NULL. purple_normalize() uses g_utf8_normalize() in case
prpl doesn't provide a normalize function. g_utf8_normalize() doesn't like a
NULL string argument, and causes a crash.
I have recently commited a revision, return NULL if purple_normalize() is
called on a NULL string. Should we add this check to purple_normalize() or
rather make sure that purple_normalize is not called on a NULL string at
I suggest we should place the check in purple_normalize() apart from making
sure that the function doesn't get call in the specified way.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel