aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-manager.c
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2012-11-27 10:48:48 +0100
committerJiří Klimeš <jklimes@redhat.com>2012-11-27 13:25:25 +0100
commite97b229e663dcd6d24a15fef51f13e2886ddf134 (patch)
tree2545eb45d20269a62613e062d14803d06bebb494 /libmm-glib/mm-manager.c
parente6052a4abfde3550b0b9c2229adb0bb381ac4a06 (diff)
core: fix possible crash in g_utf8_validate()
We can skip additional UTF-8 validity check when parsing operator. mm_charset_take_and_convert_to_utf8() already does a UTF-8 validity check internally before returning the string, so it's pointless to do a new one on the returned string. Plus, mm_charset_take_and_convert_to_utf8() may really return NULL, which would end up in segfaulting as g_utf8_validate() expects always a non-NULL string. Based on 219424a6e2d017491a05ecbed661bccde3f991ef (MM_06 branch)
Diffstat (limited to 'libmm-glib/mm-manager.c')
0 files changed, 0 insertions, 0 deletions