diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-27 12:59:06 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-27 12:59:06 +0200 |
commit | d8d47f14b5ed8f6d3f892761ed86c6ce2075c337 (patch) | |
tree | 2ad900b9f04e93c877d14b15fd9053c447853b36 /sys/src/libregexp/rregexec.c | |
parent | 651d6c2bc68e7e5224c3ba41b094e37b1c1890ed (diff) |
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.
Diffstat (limited to 'sys/src/libregexp/rregexec.c')
0 files changed, 0 insertions, 0 deletions