Crash when encoding UTF-8 strings to JSON
ecorm opened this issue · 0 comments
ecorm commented
When encoding an UTF-8 string in JSON, the assertion fails on line 212 in json.ipp. This is due to UTF-8 control bytes (e.g. 110xxxxx
) being considered less than 0x1f
on line 207. The char c
argument should be converted to an unsigned integer before performing the comparison.