Commit Graph

9 Commits

Author SHA1 Message Date
Yijie Ma 3526defc19
[JsonWriter] Do not break in EscapeString when encountering a null byte (#33127)
Instead just Utf-16 encode the null byte when dumping the value to a
string form.

<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
2023-05-15 15:38:03 -07:00
Cheng-Yu Chung 8d792b7721
Fix missing detection for invalid UTF-8 characters (#30406)
* Fix missing detection for invalid UTF-8 characters

* Add comments
2022-07-27 16:44:53 -04:00
Cheng-Yu Chung 0536a75167
Detect invalid UTF-8 characters (#30307)
* Detect invalid UTF-8 characters

* Fix checking bug

* Add unit test

* Add more comments and descriptions

* Add corpus

* Small fix to improve readability

* Fix sanity check
2022-07-21 15:02:36 -04:00
Vignesh Babu 71374e7375
accounting for un-matched utf8 bytes in json parsing (#28203) 2021-11-24 15:48:42 -08:00
Nicolas "Pixel" Noble 5d28d9f63b Added a few more corpora. 2016-03-30 21:51:28 +02:00
Craig Tiller a341fe2876 Expand corpus 2016-03-23 23:01:30 -07:00
Craig Tiller d0f1301d12 Expand corpus 2016-03-23 22:57:15 -07:00
Craig Tiller fe56d3ae72 Expand corpus 2016-03-23 22:54:00 -07:00
Craig Tiller dc559c9697 Add fuzzer found crash to corpus 2016-03-18 07:29:18 -07:00