2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/ast
liu 8639e93666
fix: validate on demand at first for GetByPath and NewRaw (#389)
* feat(ast): validate the demanded fields for ast Get

* fix: add more tests

* fix: check invalid path type

* fix(arm): make return error when skip invalid exponent

* fix(arm): skip object and array with validate

* fix: check input json in NewRaw

* fix: validate the path in native c

* chore: add licenses

* fix: panic when invalid path

* fix: add Get Full json benchmark

* fix(arm): use fast skip besides the ondemand fields

* chore codes

---------

Co-authored-by: liuqiang <liuqiang.06@bytedance.com>
2023-03-22 19:23:44 +08:00
..
api_amd64.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
api_amd64_test.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
api_compat.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
api_test.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
asm.s
decode.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
encode.go feat: more complete function loader (#354) 2023-02-08 14:35:00 +08:00
encode_test.go feat:(ast) add fallback api on not-amd64 env (#341) 2023-01-03 19:47:55 +08:00
error.go feat:(ast) add fallback api on not-amd64 env (#341) 2023-01-03 19:47:55 +08:00
iterator.go fix iterator traversal empty object panic (#314) 2022-10-18 10:59:51 +08:00
iterator_test.go fix iterator traversal empty object panic (#314) 2022-10-18 10:59:51 +08:00
node.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
node_test.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
parser.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
parser_test.go
search.go opt: faster skip in ast (#345) 2023-01-09 16:20:36 +08:00
search_test.go fix: validate on demand at first for GetByPath and NewRaw (#389) 2023-03-22 19:23:44 +08:00
sort.go
stubs_go115.go feat: fallback on unsupported go versions (#358) 2023-02-08 16:56:10 +08:00
stubs_go120.go feat: more complete function loader (#354) 2023-02-08 14:35:00 +08:00
testdata_test.go opt: faster skip in ast (#345) 2023-01-09 16:20:36 +08:00