lightspark/lightspark — comment on commit c5398c67f91290066f564cafef3bac5167d53d50
File:  line 0
By magcius:

"we cannot use g_utf8_strlen, as we may have '\0' inside our string"

g_utf8_strlen only assumes a NUL-terminated string if you pass -1 as the second argument.