projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BGO#652858: Deregister objects on state-changed::defunct
[platform/core/uifw/at-spi2-atk.git]
/
droute
/
droute-variant.c
diff --git
a/droute/droute-variant.c
b/droute/droute-variant.c
index
d4b5ca6
..
bd5ef36
100644
(file)
--- a/
droute/droute-variant.c
+++ b/
droute/droute-variant.c
@@
-22,6
+22,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include "glib.h"
#include "droute-variant.h"
#include "droute-variant.h"
@@
-64,6
+65,12
@@
droute_return_v_string (DBusMessageIter *iter, const char *val)
if (!val)
val = "";
if (!val)
val = "";
+ if (!g_utf8_validate (val, -1, NULL))
+ {
+ g_warning ("droute: Received bad UTF-8 string");
+ val = "";
+ }
+
if (!dbus_message_iter_open_container
(iter, DBUS_TYPE_VARIANT, DBUS_TYPE_STRING_AS_STRING, &sub))
{
if (!dbus_message_iter_open_container
(iter, DBUS_TYPE_VARIANT, DBUS_TYPE_STRING_AS_STRING, &sub))
{