# HG changeset patch # User Richard Laager # Date 1145908643 0 # Node ID a104ce6e2ccad97ae56b1138483188928aa15c4f # Parent 59a86d70825bbcffc397c051a89feb2a904037a0 [gaim-migrate @ 16087] 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" committer: Tailor Script diff -r 59a86d70825b -r a104ce6e2cca COPYRIGHT --- a/COPYRIGHT Sun Apr 23 22:05:14 2006 +0000 +++ b/COPYRIGHT Mon Apr 24 19:57:23 2006 +0000 @@ -294,6 +294,7 @@ David Vermeille Sid Vicious Bjoern Voigt +Wan Hing Wah Philip Walford Nathan Walp Eric Warmenhoven diff -r 59a86d70825b -r a104ce6e2cca src/gtkblist.c --- a/src/gtkblist.c Sun Apr 23 22:05:14 2006 +0000 +++ b/src/gtkblist.c Mon Apr 24 19:57:23 2006 +0000 @@ -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;