ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Crash when encoding UTF-8 strings to JSON #96

Closed ecorm closed 8 years ago

ecorm commented 8 years ago

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.