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

Parser Fuzzing #36

Open
2 of 7 tasks
grencez opened this issue Jul 23, 2021 · 0 comments
Open
2 of 7 tasks

Parser Fuzzing #36

grencez opened this issue Jul 23, 2021 · 0 comments
Labels

Comments

@grencez
Copy link
Member

grencez commented Jul 23, 2021

We should be able to parse any .fildesh script without crashing, deadlocking, or entering an infinite loop.

  • No more bailouts in parse phase! Part of No more bailouts! #35.
  • Create //src:fildesh_builtin_lib that's everything but the real main(). We'll have to split main() out to a main.c.
  • Parse scripts into an AST-like structure before interpreting their contents #86
  • Give fildesh a main function that has FildeshX** and FildeshO** arrays alongside argv. We can use it to pass in data without actually doing file i/o.
  • Add -parse flag that just parses the script. Includes are not exercised.
  • Fuzz test fildesh -parse input.fildesh by calling the main function directly, using a FildeshX to hold the input.fildesh fuzz bytes.
  • Make the fuzzer run cleanly. The parse phase doesn't actually do much, so hopefully this isn't much trouble.
grencez added a commit that referenced this issue Aug 23, 2022
It's just the code that separates lines.
Gotta start somewhere!

#36
grencez added a commit that referenced this issue Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant