Skip to content

Add AdvancedFuzzer for better OSS-Fuzz coverage - #98

Merged
wnameless merged 3 commits into
wnameless:masterfrom
vishalcoc44:advanced-fuzzer
Mar 30, 2026
Merged

Add AdvancedFuzzer for better OSS-Fuzz coverage#98
wnameless merged 3 commits into
wnameless:masterfrom
vishalcoc44:advanced-fuzzer

Conversation

@vishalcoc44

Copy link
Copy Markdown
Contributor

Details

This new fuzzer exercises additional code paths not covered by existing fuzzers:

  1. KeyTransformer - Tests custom key transformation during flatten/unflatten
  2. Custom Brackets - Tests withLeftAndRightBrackets() with various bracket combinations
  3. Reader Constructors - Tests JsonFlattener(JsonCore, Reader) constructors
  4. ignoreReservedCharacters() - Tests the option to skip reserved character checking
  5. Static Methods - Tests JsonFlattener.flatten(String) and JsonFlattener.flattenAsMap(String)
  6. Map-based Unflatten - Tests JsonUnflattener.unflatten(Map) and JsonUnflattener.unflattenAsMap(Map)

Testing

Locally verified with Jazzer:

  • AdvancedFuzzer achieves ~5,000 coverage (vs ~600 for existing fuzzers combined)
  • All existing fuzzers continue to work

@wnameless
wnameless merged commit fff0ef1 into wnameless:master Mar 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants