Issue 1182: Fix fuzzing bug (#1183)

This patch fixes a fuzzing bug by resolving a bad fallthrough in the
setComment logic.

The result is that we get a proper error instead of an assert, making
the library friendlier to use and less likely to cause issue for
consumers.

See related Chromium project bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=989851

Issue: 1182
This commit is contained in:
Jordan Bayles
2020-05-30 20:20:20 -07:00
committed by GitHub
parent 6aba23f4a8
commit 9be5895985
2 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1 @@
{'//this is bad JSON.'}