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 crash on warning of hidden declaration. Issue #1038 #1048

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

NikLeberg
Copy link
Contributor

The fuzzing done by @avelure produced various interesting errors.

The one I try to fix here seems to stem from a simple typo in the implementation of warn_hidden_decl.

I added a testcase but it produces another error ../test/test_util.c:199:F:Core:test_issue1038:0: Assertion 'parse() == NULL' failed But I don't know exactly why. I do not fully understand the test framework though and could be doing something stupid.

Cheers

@NikLeberg
Copy link
Contributor Author

see #1038 (comment) for reference

@nickg
Copy link
Owner

nickg commented Nov 1, 2024

parse_and_check(T_PACKAGE, T_PACK_BODY) should fix the assertion failure.

@nickg nickg merged commit 10f0e82 into nickg:master Nov 2, 2024
12 checks passed
@NikLeberg NikLeberg deleted the fuzz_12dc86d branch November 2, 2024 11:02
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