plan9fox/sys/src/libjson
cinap_lenrek d8d47f14b5 libjson: add slack space to literal string buffer to handle bad runes (thanks mischief)
if the input string contains invalid utf-8, runetochar() produces
unicode replacement characters that can overflow the literal buffer.
as the overflow check is done after runetochar(), add UTFmax bytes
of slack space avoiding the issue.
2016-04-27 12:59:06 +02:00
..
json.c libjson: add slack space to literal string buffer to handle bad runes (thanks mischief) 2016-04-27 12:59:06 +02:00
mkfile libjson: added printing support (thanks spew) 2015-12-22 18:12:56 +01:00
printjson.c libjson: added printing support (thanks spew) 2015-12-22 18:12:56 +01:00