Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
pidgin.import5557
silc-fixutf8-securitybug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File silc-fixutf8-securitybug.patch of Package pidgin.import5557
Index: pidgin-2.6.6/libpurple/protocols/silc/ops.c =================================================================== --- pidgin-2.6.6.orig/libpurple/protocols/silc/ops.c +++ pidgin-2.6.6/libpurple/protocols/silc/ops.c @@ -332,10 +332,17 @@ silc_channel_message(SilcClient client, } if (flags & SILC_MESSAGE_FLAG_UTF8) { - tmp = g_markup_escape_text((const char *)message, -1); + const char *msg = (const char *)message; + char *salvaged = NULL; + if (!g_utf8_validate((const char *)message, -1, NULL)) { + salvaged = purple_utf8_salvage((const char *)message); + msg = salvaged; + } + tmp = g_markup_escape_text(msg, -1); /* Send to Purple */ serv_got_chat_in(gc, purple_conv_chat_get_id(PURPLE_CONV_CHAT(convo)), sender->nickname, 0, tmp, time(NULL)); + g_free(salvaged); g_free(tmp); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor