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 nil pointer dereference in BlockNum precompile #1881

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

anodar
Copy link
Contributor

@anodar anodar commented Sep 26, 2023

The test curently panics: https://gist.github.com/anodar/94725241e9fc9bfdf3cab8e8d608bf42, but passes anyway since this is rpc call and test expects errors (checks that it's nil), the error currently is "method handler crashed".

Also sent #1882 to handle nil header in deserialization method.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 26, 2023
@anodar anodar marked this pull request as ready for review September 26, 2023 14:35
@anodar anodar enabled auto-merge September 26, 2023 14:54
Copy link
Contributor

@ganeshvanahalli ganeshvanahalli left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks for catching this!

@anodar anodar merged commit 8f89a85 into master Sep 26, 2023
7 checks passed
@anodar anodar deleted the fix-blocknum-in-nodeinterface branch September 27, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants