g_unichar_iswide_cjk: add a special case for U+0000

Desktop / GNOME / GLib - Simon McVittie [debian.org] - 2 December 2016 13:10 UTC

bsearch() is defined to search for a non-null key, so we can't search for NULL. The undefined behaviour sanitizer picks this up.

1d697a5 g_unichar_iswide_cjk: add a special case for U+0000
glib/guniprop.c | 5 +++++
1 file changed, 5 insertions(+)

Upstream: git.gnome.org


  • Share