MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,168 in github.com/buger/jsonparser

↓ 1 callersFunctioncloseEnoughFloat
closeEnoughFloat reports whether two float64 values agree to within a relative tolerance of ~4 ULP — used only for adversarial inputs where rounding m
reference_oracle_test.go:935
↓ 1 callersFunctionclosingDelimiter
SYS-REQ-116
reader_parser.go:555
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:395
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:687
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:854
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1013
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1177
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1452
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1717
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1906
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2095
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2311
↓ 1 callersMethodcodecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2545
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:314
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:654
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:818
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:980
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1144
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1389
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1669
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1873
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2056
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2269
↓ 1 callersMethodcodecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2497
↓ 1 callersFunctioncombineUTF16Surrogates
NOTE: combineUTF16Surrogates is blocked by an unsupported `<<` shift op in the translator (Phase T.* gap, beyond #1/#2/#5). Even though Fix #6 resolve
escape.go:22
↓ 1 callersFunctioncompareNumberParsing
compareNumberParsing cross-checks jsonparser.ParseInt/ParseFloat against encoding/json's json.Number (the canonical reference).
encoding_json_fuzz_test.go:582
↓ 1 callersFunctioncrashSignature
(panicMsg string, stack []byte)
fuzz_native_test.go:67
↓ 1 callersFunctioncreateInsertComponentBuffered
(keys []string, setValue []byte, comma, object bool)
issues_56_107_229_test.go:237
↓ 1 callersFunctioneachKeyWildcard
SYS-REQ-113
wildcard.go:21
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:635
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:514
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:560
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:468
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:376
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:188
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:105
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:242
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_LargePayload
suppress unused package warning Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:12
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:288
↓ 1 callersFunctioneasyjson_decode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:681
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:657
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:536
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:600
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:490
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:420
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:212
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:147
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:264
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_LargePayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:60
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:332
↓ 1 callersFunctioneasyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:719
↓ 1 callersMethodencSlicePtrtoCBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2610
↓ 1 callersMethodencSlicePtrtoDSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2712
↓ 1 callersMethodencSlicePtrtoDSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2814
↓ 1 callersFunctionexpandWildcardPaths
SYS-REQ-113
wildcard.go:112
↓ 1 callersMethodfindArrayValue
SYS-REQ-116
reader_parser.go:324
↓ 1 callersMethodfindObjectValue
SYS-REQ-116
reader_parser.go:231
↓ 1 callersFunctiongenArray
genArray emits an array with 0–5 elements (including the empty array []).
json_fuzz_test.go:220
↓ 1 callersFunctiongenKey
genKey emits a JSON object key (a double-quoted string). The key content is drawn from a weighted distribution that includes the cases most likely to
json_fuzz_test.go:239
↓ 1 callersFunctiongenNumber
genNumber emits a JSON number. The distribution is weighted toward the fast-path (small ints) but includes overflow boundaries, floats, and intentiona
json_fuzz_test.go:401
↓ 1 callersFunctiongenObject
genObject emits an object with 0–5 entries. Keys are drawn from a set that includes the dangerous cases: empty-string "", unicode (\uXXXX), long, and
json_fuzz_test.go:205
↓ 1 callersFunctiongenPathComponent
genPathComponent returns a single adversarial path component.
json_fuzz_test.go:945
↓ 1 callersFunctiongenString
genString emits a JSON string value. Includes empty "", ASCII, strings with escape sequences, unicode escapes, and long strings.
json_fuzz_test.go:299
↓ 1 callersFunctiongetTestCheckFoundAndNoError
checkFoundAndNoError checks the dataType and error return from Get*() against the test case expectations. Returns true the test should proceed to chec
parser_test.go:1208
↓ 1 callersFunctioninjectPathHazard
injectPathHazard randomly injects an adversarial path component into an existing path. This implements the injectEmptyKeyComponent and injectOobArrayI
json_fuzz_test.go:977
↓ 1 callersFunctionisReaderValueDelimiter
SYS-REQ-116
reader_parser.go:588
↓ 1 callersFunctionisSameMemory
isSameMemory checks if two slices contain the same memory pointer (meaning one is a subslice of the other, with possibly differing lengths/capacities)
escape_test.go:156
↓ 1 callersFunctionisUTF16EncodedRune
isUTF16EncodedRune checks if a rune is in the range for non-BMP characters, which is used to describe UTF16 chars. Source: https://en.wikipedia.org/wi
escape.go:118
↓ 1 callersFunctionoracleRandKey
oracleRandKey generates a short object key. Includes "" (empty) to exercise the 8th-panic-site hazard. Bracket-style strings like "[0]" are NOT emitte
reference_oracle_test.go:239
↓ 1 callersFunctionoracleSetValue
--------------------------------------------------------------------------- Property 2: Set append/replace — Set then Get returns the set value. This
reference_oracle_test.go:499
↓ 1 callersFunctionparseBracketPathComponent
SYS-REQ-114
path_compiler.go:132
↓ 1 callersFunctionparseIntOverflows
Test helper for SYS-REQ-015.
bytes_test.go:153
↓ 1 callersFunctionparseQuotedPathKey
SYS-REQ-114
path_compiler.go:99
↓ 1 callersFunctionparseReaderArrayIndex
SYS-REQ-116
reader_parser.go:398
↓ 1 callersFunctionparseTestCheckNoError
parseTestCheckNoError checks the error return from Parse*() against the test case expectations. Returns true the test should proceed to checking the a
parser_test.go:2178
↓ 1 callersFunctionrandJSONString
(r *mathrand.Rand)
property_test.go:93
↓ 1 callersFunctionrandomExistingJSONPath
(r *mathrand.Rand, value interface{})
property_test.go:435
↓ 1 callersMethodreadMore
SYS-REQ-116
reader_parser.go:622
↓ 1 callersMethodreadObjectKey
SYS-REQ-116
reader_parser.go:407
↓ 1 callersFunctionrecordCrash
(target string, panicVal interface{}, stack, input []byte)
fuzz_native_test.go:83
↓ 1 callersFunctionrecordPathCrash
recordPathCrash writes a JSON artifact capturing the data + path that triggered a panic, so the crash is reproducible outside the fuzzer. Deduplicated
path_fuzz_test.go:66
↓ 1 callersFunctionrunDeepNestingDepths
============================================================================= Gate D: Deep-nesting stack safety (CVE-2020-29652 class) ===============
encoding_json_fuzz_test.go:306
↓ 1 callersFunctionrunDeleteTests
Test helper for SYS-REQ-010.
parser_test.go:1315
↓ 1 callersFunctionrunDifferentialGate
============================================================================= Gate G: Differential — jsonparser vs encoding/json number parsing ======
encoding_json_fuzz_test.go:555
↓ 1 callersFunctionrunDoSCase
runDoSCase runs one op under the DoS budget. A panic or a timeout exceeds the budget — either is a finding.
json_fuzz_test.go:1687
↓ 1 callersFunctionrunMarshalDeterminismGate
============================================================================= Gate I: Marshal determinism on round-tripped values ====================
encoding_json_fuzz_test.go:509
↓ 1 callersFunctionrunOpNoPanic
runOpNoPanic runs fn and fails the test on panic (the NO-PANIC gate). The panic value and stack are included in the failure message so the fuzz engine
json_fuzz_test.go:1420
↓ 1 callersFunctionrunRoundTripGate
============================================================================= Gate C: Unmarshal → Marshal → Unmarshal round-trip equivalence =========
encoding_json_fuzz_test.go:229
↓ 1 callersFunctionrunSetTests
Test helper for SYS-REQ-009.
parser_test.go:1288
↓ 1 callersFunctionrunStreamingConsistencyGate
============================================================================= Gate E: Streaming Decoder vs one-shot Unmarshal consistency ============
encoding_json_fuzz_test.go:348
↓ 1 callersFunctionrunTransformDoSGate
runTransformDoSGate runs Compact/Indent/HTMLEscape on a deeply-nested input under a wall-clock budget. A panic OR a hang is a finding.
encoding_json_fuzz_test.go:450
↓ 1 callersFunctionrunTransformGate
============================================================================= Gate F: Compact / Indent / HTMLEscape must never panic =================
encoding_json_fuzz_test.go:409
↓ 1 callersFunctionrunValidConsistencyGate
============================================================================= Gate A: NO-PANIC (embedded in every gate via encodingJSONNoPanic) ======
encoding_json_fuzz_test.go:174
↓ 1 callersFunctionsafeCall
safeCall invokes a fuzz harness, recovering from any panic and returning the harness result or -1 on panic.
property_test.go:993
↓ 1 callersMethodscanComposite
SYS-REQ-116
reader_parser.go:515
↓ 1 callersMethodscanScalar
SYS-REQ-116
reader_parser.go:563
↓ 1 callersFunctionsetPathSemanticallyValid
setPathSemanticallyValid reports whether applying Set/Delete with `path` to a doc marshaled from `v` is well-defined: each array-index component must
reference_oracle_test.go:409
↓ 1 callersFunctionsetTestCheckFoundAndNoError
Test helper for SYS-REQ-009.
parser_test.go:1263
↓ 1 callersFunctionstrconvParseFloat
strconvParseFloat is a thin wrapper so the SEQUENCE closures don't have to import strconv (the package-level import set already lives in json_fuzz_tes
path_fuzz_test.go:711
↓ 1 callersFunctiontestIter
Test helper for SYS-REQ-008.
parser_error_test.go:17
← previousnext →201–300 of 1,168, ranked by callers