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: do not panic when given empty string arg #2064

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

lucasrod16
Copy link
Contributor

Fixes #2063

Signed-off-by: Lucas Rodriguez <lucas.rodriguez9616@gmail.com>
Copy link
Contributor

@spiffcs spiffcs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lucasrod16 - great issue description, easy to reproduce, and awesome PR with the added test for regression protection.

I was able to reproduce this on latest grype, pulled your change, and ran with "" to verify the fix.

👍 🚀 Thank you very much for the bug fix!

@spiffcs spiffcs merged commit e7a3c01 into anchore:main Aug 19, 2024
10 checks passed
@lucasrod16
Copy link
Contributor Author

Thanks @lucasrod16 - great issue description, easy to reproduce, and awesome PR with the added test for regression protection.

I was able to reproduce this on latest grype, pulled your change, and ran with "" to verify the fix.

👍 🚀 Thank you very much for the bug fix!

@spiffcs Much appreciated! I really enjoy grype as a CLI and library user and appreciate the work that has been put into it. I'm glad to contribute back!

@lucasrod16 lucasrod16 deleted the do-not-panic-on-empty-string-arg branch August 19, 2024 20:33
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.

Grype panics with a nil pointer dereference error when given an empty string argument
2 participants