From: <rl...@us...> - 2006-04-24 19:57:33
|
Revision: 16087 Author: rlaager Date: 2006-04-24 12:57:23 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16087&view=rev Log Message: ----------- SF Patch #1475008 from Wan Hing Wah "fix crash when search in buddylist containing non-ascii text" "the len parameter of pango_get_log_attrs should be in length of bytes instead of length of utf8 characters. This cause crash when the buddly list name contain international character where strlen(normalized) != g_utf8_strlen(normalized). reproducable on gaim svn trunk" Modified Paths: -------------- trunk/COPYRIGHT trunk/src/gtkblist.c Modified: trunk/COPYRIGHT =================================================================== --- trunk/COPYRIGHT 2006-04-23 22:05:14 UTC (rev 16086) +++ trunk/COPYRIGHT 2006-04-24 19:57:23 UTC (rev 16087) @@ -294,6 +294,7 @@ David Vermeille Sid Vicious Bjoern Voigt +Wan Hing Wah Philip Walford Nathan Walp Eric Warmenhoven Modified: trunk/src/gtkblist.c =================================================================== --- trunk/src/gtkblist.c 2006-04-23 22:05:14 UTC (rev 16086) +++ trunk/src/gtkblist.c 2006-04-24 19:57:23 UTC (rev 16087) @@ -3428,7 +3428,7 @@ len = g_utf8_strlen(normalized, -1); log_attrs = g_new(PangoLogAttr, len + 1); - pango_get_log_attrs(normalized, len, -1, NULL, log_attrs, len + 1); + pango_get_log_attrs(normalized, strlen(normalized), -1, NULL, log_attrs, len + 1); word = normalized; result = TRUE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |