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 intermittent test failure in test_deny_executable_write #1588

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

seanyoung
Copy link

The test was writing 42 to offset 4 of the program account. The program is upgradable, so offset 4 is first byte of the account which holds the actual elf program.

There was a chance that the first byte of the account is 42, in which case the test passes, because with the non-direct mapping case, you can write to read only accounts as long as the contents does not change.

The test was writing 42 to offset 4 of the program account. The program
is upgradable, so offset 4 is first byte of the account which holds the
actual elf program.

There was a chance that the first byte of the account is 42, in which
case the test passes, because with the non-direct mapping case, you can
write to read only accounts as long as the contents does not chance.
@seanyoung seanyoung requested review from alessandrod and Lichtso June 4, 2024 13:06
@seanyoung seanyoung merged commit 8c80bda into anza-xyz:master Jun 5, 2024
42 checks passed
@seanyoung seanyoung deleted the intermittent branch June 5, 2024 17:24
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