chiark / gitweb /
Disallow invalid UTF-8 configuration
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 24 Aug 2013 14:51:55 +0000 (10:51 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 28 Aug 2013 12:04:56 +0000 (08:04 -0400)
commit335c46b59888d431e5a57cddcf7ceecd09ec8e4a
tree7c56d35f755f72892728bfec20f13e0bd0601082
parentfe05567c31cb88593a09ce5d8961d8b20627feb1
Disallow invalid UTF-8 configuration

It is best to catch such errors early. If invalid UTF-8 ends up being
given to dbus methods, the program will crash:

process 20801: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file dbus-message.c line 2598.
src/shared/fileio.c