-
Notifications
You must be signed in to change notification settings - Fork 398
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(gnovm): fix nil pointer deref for duplicate declarations #3886
Conversation
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. I confirmed that there is no nil pointer issue. 👍
Personally, I think it would be good to check for redeclarations, but I also agree that adding a separate check for such this cases would be inefficient. However, this seems to be beyond my hand, so I'll let it go.
I'll fix this up a second (adding more tests) |
thanks @thehowl for the fix, it's elegant and concise. 👍 |
@ltzmaxwell does the txtar in gno.land make sense in your opinion - or should we remove it? i think it's not testing anything in particular, because test files aren't considered |
IMO, it serves as a helpful explanation after adding this part of the clarification:
|
This reverts commit 09c759a.
close: #2763 .
This PR addresses the nil pointer issue, also fix the
redeclaration
issue by @thehowl .filetest
is a special case, ,redeclaration
is still permitted in filetest files(e.g. z_0_filetest, z_1_filetest...) forconvenience
.