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

fix: check for eof to avoid infinite loop bugs and apply clang-tidy fixes #14

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

amaanq
Copy link
Contributor

@amaanq amaanq commented Jun 23, 2023

it can be detected with libfuzzer - thanks!

@Beaglefoot
Copy link
Owner

Hi @amaanq !

The changes look good, but could you provide an example there this issue manifests itself?

@amaanq
Copy link
Contributor Author

amaanq commented Jul 3, 2023

Sorry just saw this, here's a simple example:

00000000: 662b 2b74 f++t

Just "f++t" in a file (no newline) can trigger it. I can add a fuzz action to check for these automatically on every PR/commit to the master branch as well

@amaanq amaanq force-pushed the infinite-loop-bug branch from f49d51f to 41c57bf Compare July 3, 2023 23:46
@amaanq
Copy link
Contributor Author

amaanq commented Jul 3, 2023

rebased

@Beaglefoot Beaglefoot merged commit 476b1a0 into Beaglefoot:master Jul 8, 2023
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