Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,014 in github.com/buger/jsonparser
⨍
Functions
1,014
◇
Types & classes
26
Function
duplicateKey
duplicateKey injects a duplicate object key, turning {"k":1} into {"k":1,"k":1}. This exercises duplicate-key handling: the parser should return the f
json_fuzz_test.go:701
Function
equalStr
The reason for using *[]byte rather than []byte in parameters is an optimization. As of Go 1.6, the compiler cannot perfectly inline the function whe
bytes_unsafe.go:22
Function
init
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:36
Function
injectInvalidUTF8
injectInvalidUTF8 inserts a raw invalid-UTF-8 byte sequence inside a JSON string value. Targets the parser's UTF-8 validation path: the parser must re
json_fuzz_test.go:804
Function
injectLoneSurrogate
injectLoneSurrogate corrupts a string by replacing a `\uXXXX` escape with a lone surrogate escape (\uD800 / \uDC00 alone, or a high-high pair). Target
json_fuzz_test.go:835
Function
injectMismatchedCloser
injectMismatchedCloser swaps a closing '}' for ']' (or vice versa). The grammar generator always pairs '{' with '}' and '[' with ']'; this operator pr
json_fuzz_test.go:911
Function
injectUnbalancedOpen
injectUnbalancedOpen inserts unmatched '{' or '[' opens at a random position. This produces structures the grammar generator CANNOT emit: every genera
json_fuzz_test.go:886
Function
parseFloat
(b *[]byte)
bytes_unsafe.go:26
Function
toArray
Test helper for SYS-REQ-006.
parser_test.go:16
Function
truncateAtValueBoundary
truncateAtValueBoundary cuts the document right after a ':' (before the value starts). This is the OSS-Fuzz 4649128545288192 / sentinel_value_boundary
json_fuzz_test.go:571
Function
truncateMidElement
truncateMidElement cuts inside an array element, after a '[' or ','. The truncated_mid_element class: the parser must not read past the cut when scann
json_fuzz_test.go:681
Function
truncateMidEscape
truncateMidEscape cuts inside a \uXXXX escape sequence. This is the truncated_escape_sequence class: the parser's Unescape routine must detect the tru
json_fuzz_test.go:649
Function
truncateMidKey
truncateMidKey cuts inside a string key. The cut is placed between the opening '"' of a key and its closing '"'. This is the truncated_mid_key class:
json_fuzz_test.go:588
Function
truncateMidStructure
truncateMidStructure cuts after an unclosed '{' or '['. This is the truncated_mid_structure class: the parser must detect the missing closing token an
json_fuzz_test.go:631
← previous
1,001–1,014 of 1,014, ranked by callers