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/snapshot's zeroed account as optional #170

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

Ikrk
Copy link
Contributor

@Ikrk Ikrk commented Jun 13, 2024

Fixes https://ackeeblockchain.atlassian.net/browse/TRD-62

When using the anchor constraint #[account(zero)], the account exists but the data is empty. This constraint is not handled similarly to the init constraint where the accounts_snapshot field is wrapped in an Option and therefore the deserialization fails and it causes a fuzzing crash.

The expected behavior is that the account should be wrapped in an Option and set to None, in case the data is empty.

@Ikrk Ikrk requested review from michprev and lukacan June 13, 2024 23:54
@lukacan lukacan merged commit 17d3c2a into develop Jun 24, 2024
8 checks passed
@lukacan lukacan deleted the fix/account-zero branch June 24, 2024 09:00
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