Skip to content

Assume a for-in loop is in bounds and cannot overflow #94883

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

Closed
wants to merge 1 commit into from

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Jun 9, 2024

No description provided.

When accessing data in the buffer, we know we won't overrun the buffer, so we know it is inbounds. In addition, we know that the addition to increase the index is also NUW because the buffer's end has to be unsigned-greater-than 0, which becomes untrue if the bounds ever has an unsigned wrap.
@JOE1994
Copy link
Member

JOE1994 commented Jun 9, 2024

Why did you close this PR so soon after creating it?

@AZero13
Copy link
Contributor Author

AZero13 commented Jun 9, 2024

Why did you close this PR so soon after creating it?

Superseded

@AZero13
Copy link
Contributor Author

AZero13 commented Jun 9, 2024

Why did you close this PR so soon after creating it?

See here: #94885

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