summaryrefslogtreecommitdiff
path: root/sys/src/libjson
AgeCommit message (Collapse)Author
2016-04-27libjson: add slack space to literal string buffer to handle bad runes ↵cinap_lenrek
(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.
2015-12-22libjson: added printing support (thanks spew)cinap_lenrek
2015-12-22libjson: fix memory leak setjmp/longjmp problem (thanks spew)cinap_lenrek
spew → I fixed the memory leak setjmp/longjmp problem with libjson spew → http://www.spew.club/json.patch spew → full file: http://www.spew.club/json.c spew → going to bed, I'll annoy cinap_lenrek tomorrow to try to get this committed
2013-11-10libjson: don't perform chartorune in getch() when char is null terminator, ↵BurnZeZ
and remove empty string check added last commit
2013-11-10libjson: check for empty string in jsonparse()BurnZeZ
2013-10-28libjson: fix missing buffer free, slight cleanupBurnZeZ
2013-10-28libjson: dynamically allocate bufferBurnZeZ
2013-10-28libjson: fix mistake... (harmless)cinap_lenrek
2013-10-28libjson: fix for 21 bit runes, implement utf-16 surrogatescinap_lenrek
2013-10-27libjson: fix mistake in unicode handler (thanks cinap)BurnZeZ
2013-10-27libjson: handle unicode escapesBurnZeZ
2013-10-27make libjson from /sys/src/cmd/btc/json.cBurnZeZ