Skip to content

Crash when encoding UTF-8 strings to JSON #96

@ecorm

Description

@ecorm

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions