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

When attempting to write a byte beyond the end of a byte[], don't update the position until after we've finished the bounds checks. #18442

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 20, 2024

When attempting to write a byte beyond the end of a byte[], don't update the position until after we've finished the bounds checks.

Previously, we'd update position, so size left would return -1.

This is a partial roll-forward of cl/673588324.

…ate the position until after we've finished the bounds checks.

Previously, we'd update position, so size left would return -1.

This is a partial roll-forward of cl/673588324.

PiperOrigin-RevId: 677587399
@copybara-service copybara-service bot merged commit d98f5e1 into main Sep 23, 2024
1 check passed
@copybara-service copybara-service bot deleted the test_676716931 branch September 23, 2024 02:19
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.

1 participant