akheron / jansson

C library for encoding, decoding and manipulating JSON data
http://www.digip.org/jansson/
Other
3.02k stars 807 forks source link

Parsing of \u0000 #690

Closed j-moeller closed 6 days ago

j-moeller commented 1 week ago

Hello,

we found an issue in jansson when dealing with "\u0000" in a string. You can find a minimum working sample here: 1.

akheron commented 6 days ago

You must use the JSON_ALLOW_NUL decoding flag as described here: https://jansson.readthedocs.io/en/latest/apiref.html#decoding