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

Add a fuzz-tester #101

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Add a fuzz-tester #101

merged 5 commits into from
Nov 22, 2023

Conversation

skx
Copy link
Owner

@skx skx commented Nov 22, 2023

This pull-request, still in-progress, adds a minimal fuzzer to the test-suite and patches up some bogus crashes and panics that were found almost immediately. Ouch.

Some brief examples of things that were fixed/improved as a result of the fuzzer:

  • Division by zero is caught.
  • Issues with the backtick operator were caught.
  • Issues with null-operands were caught
    • Though I kinda feel the parser is at fault here.
  • The range operator was size-capped.
  • The index-operator was updated.

Once complete this will close #99.

This pull-request, still in-progress, adds a minimal fuzzer to the
test-suite and patches up some bogus crashes and panics that were
found almost immediately.  Ouch.

* Division by zero is caught.
* Issues with the backtick operator were caught.
* Issues with null-operands were caught
  * Though I kinda feel the parser is at fault here.
@skx skx merged commit 2770585 into master Nov 22, 2023
1 check passed
@skx skx deleted the 99-fuzz branch November 22, 2023 19:22
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.

Add fuzz-testing
1 participant