Open
Conversation
|
tranquac is integrating a new project: |
Fuzz libprism directly as a standalone C library instead of through the Ruby extension, enabling memory sanitizer and removing Ruby VM overhead and workarounds. Fuzz targets: - fuzz_parse: pm_serialize_parse() — full AST parse path (uses existing fuzz/parse.c from the project) - fuzz_lex: pm_serialize_lex() — lexer-only path (fuzz_lex.c) Build: ruby templates/template.rb + make static CC=$CC CFLAGS=$CFLAGS, then link fuzz/fuzz.c + harness against build/libprism.a. Sanitizers: address, memory (msan), undefined — all supported since there is no Ruby VM in the binary. Seed corpus: ~986 Ruby fixture files from test/prism/fixtures/. Dictionary: fuzz/dict from the project (Ruby keywords, operators).
a7da9ac to
135f2d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Project: prism (C library)
Adds continuous fuzzing for https://github.com/ruby/prism by fuzzing libprism directly as a standalone C library, not through the Ruby extension.
Fuzz targets
fuzz_parsepm_serialize_parse()fuzz/parse.cfuzz_lexpm_serialize_lex()fuzz_lex.cBuild
Sanitizers
address,memory(msan — not possible with Ruby extension),undefinedCorpus & dictionary
test/prism/fixtures/(all subdirs)fuzz/dictfrom the project (Ruby keywords, operators, magic tokens)Build verification
build_image✓build_fuzzers --sanitizer address✓check_build --sanitizer address✓Project maintainer: @kddnewton (Kevin Newton,
kddnewton@gmail.com)