Skip to content

collate: Don't segfault on bad input

Matthias Clasen requested to merge collate-crash into main

The behavior of _g_utf8_normalize_wc() changed in 7f4726d1, it now returns NULL if the length ends in the middle of a multibyte character. Make g_utf8_collate_key() handle that without a crash.

Testcase included.

Fixes #3185 (closed)

Merge request reports