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

avoid writing to readonly refcounts #7427

Merged
merged 2 commits into from
Dec 29, 2024
Merged

avoid writing to readonly refcounts #7427

merged 2 commits into from
Dec 29, 2024

Conversation

bhansconnect
Copy link
Collaborator

Found this bug when working on basic-cli. If we write a read only refcount to something that is already read only, we risk trying to write to the static section of the binary that is write protected. This will crash. Use a conditional to avoid the write.

@bhansconnect bhansconnect merged commit 0ce43ff into main Dec 29, 2024
19 checks passed
@bhansconnect bhansconnect deleted the const-write branch December 29, 2024 01:37
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.

4 participants