Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve fuzzing coverage of yajl-ruby #12796

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jsnv-dev
Copy link

This pull request adds new fuzzers to improve the fuzzing coverage of yajl-ruby, focusing on JSON processing and buffer manipulation functions:

  • string_encode_fuzzer: Tests string encoding functionality with different HTML safety modes and buffer operations including truncation
  • parse_complete_fuzzer: Tests JSON parsing completion handling with various input states and error conditions
  • lex_peek_fuzzer: Tests lexer peeking functionality with different token types and positions
  • error_string_fuzzer: Tests error message generation and handling across different error types and verbosity levels

Copy link

jsnv-dev is a new contributor to projects/yajl-ruby. The PR must be approved by known contributors before it can be merged. The past contributors are: inferno-chromium, devtty1er, Dor1s, titanous (unverified)

@jsnv-dev
Copy link
Author

jsnv-dev commented Dec 6, 2024

Hi @inferno-chromium, @devtty1er, @Dor1s, @titanous. Can you help in reviewing this PR when you have spare time? Thank you!

@titanous
Copy link
Contributor

titanous commented Dec 6, 2024

@jsnv-dev Have you checked if yajl-ruby would be willing to carry these fuzz targets upstream?

@jsnv-dev
Copy link
Author

jsnv-dev commented Dec 6, 2024

@jsnv-dev Have you checked if yajl-ruby would be willing to carry these fuzz targets upstream?

I haven't checked with them. I can check with them, but should I also move the existing fuzzer in the oss-fuzz project folder?

@titanous
Copy link
Contributor

titanous commented Dec 6, 2024

Yeah if they are up for it, it’s ideal if fuzz targets are maintained upstream.

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