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: allow ReadByte/WriteByte to get last byte of 4GB memory #2171

Merged
merged 1 commit into from
Apr 4, 2024
Merged

fix: allow ReadByte/WriteByte to get last byte of 4GB memory #2171

merged 1 commit into from
Apr 4, 2024

Conversation

ncruces
Copy link
Collaborator

@ncruces ncruces commented Apr 4, 2024

Use hasSize as it handles overflow: uint32(len(m.Buffer)) overflows if a memory has 65536 pages of 65536 bytes.

Related: #1852

@ncruces ncruces merged commit a030b61 into tetratelabs:main Apr 4, 2024
64 checks passed
@ncruces ncruces deleted the fixmem branch April 4, 2024 11:09
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