GNOME Bugzilla – Bug 789444
Fix handling of length in g_utf8_make_valid
Last modified: 2017-10-25 09:34:14 UTC
We cannot blindly append the remainder in case the string isn't nul- terminated.
Created attachment 362225 [details] [review] gutf8: Fix length handling in g_utf8_make_valid() We cannot blindly append the remainder when a length was provided because the string isn't nul-terminated.
Review of attachment 362225 [details] [review]: Good catch. Thanks for the test case too.
Attachment 362225 [details] pushed as b829b76 - gutf8: Fix length handling in g_utf8_make_valid()