diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 20:42:37 -0700 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-02-25 20:42:37 -0700 |
commit | 0fa9f8b14f04f4b0099f038cc43e4cef57a155a1 (patch) | |
tree | 62a21db8d3241bcf264bcf0874df632c4ce9ba94 /compat/json/testcompat_test.go | |
parent | 03778c094d995791f6c3df08afeeb792f33f35a5 (diff) | |
parent | 22edcf6a68a057ed04368d5f78c8ba3ddfee8d57 (diff) |
Merge branch 'lukeshu/fuzz-err'
Diffstat (limited to 'compat/json/testcompat_test.go')
-rw-r--r-- | compat/json/testcompat_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/json/testcompat_test.go b/compat/json/testcompat_test.go index 73153d9..affcd7c 100644 --- a/compat/json/testcompat_test.go +++ b/compat/json/testcompat_test.go @@ -32,7 +32,7 @@ func checkValid(in []byte, scan *lowmemjson.ReEncoderConfig) error { func isValidNumber(s string) bool { var parser jsonparse.Parser for _, r := range s { - if t, _ := parser.HandleRune(r); !t.IsNumber() { + if t, _ := parser.HandleRune(r, true); !t.IsNumber() { return false } } |