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 NULL check before calling type_eq. #1050

Merged
merged 2 commits into from
Nov 2, 2024
Merged

Conversation

NikLeberg
Copy link
Contributor

Continuation of the fuzzing crashes found by @avelure.
See #1038 (comment).

This one happened when type_eq was called on a kind that is actually NULL. I added a simple check. The tests with make check are passing and seem to indicate that nothing else was impacted. Lets see what CI thinks of it.

I preliminary merged #1048 to build upon the same test case. I'll rebase once that is in master.

Cheers

@NikLeberg NikLeberg changed the title Fuzz 1725b8e Add NULL check before calling type_eq. Nov 2, 2024
Copy link
Owner

@nickg nickg left a comment

Choose a reason for hiding this comment

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

Needs a rebase after I merged the other PR.

test/test_parse.c Outdated Show resolved Hide resolved
@nickg nickg merged commit 7dc0f14 into nickg:master Nov 2, 2024
12 checks passed
@NikLeberg NikLeberg deleted the fuzz_1725b8e branch November 2, 2024 11:30
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