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

Bytes accept negative offset #440

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

s-hadinger
Copy link
Contributor

Bytes accepts negative offset, that are considered as positions from the end of the buffer.

If the offset is out of range, reads return zero, and writes raise an exception.

Fixes #424

@skiars skiars merged commit d6025fc into berry-lang:master Aug 23, 2024
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.

Out-of-bound memory access in be_byteslib
2 participants