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 using a goto loop in unpackDataOpt #1505

Merged
merged 1 commit into from Nov 6, 2023

Conversation

tmthrgd
Copy link
Collaborator

@tmthrgd tmthrgd commented Nov 6, 2023

We definitely shouldn't be using goto for a simple loop.

This is technically a behaviour change when off == len(msg), but we're always called with off < len(msg) so this is unobservable.

We definitely shouldn't be using goto for a simple loop.

This is technically a behaviour change when off == len(msg), but we're
always called with off < len(msg) so this is unobservable.
@tmthrgd tmthrgd requested a review from miekg as a code owner November 6, 2023 05:46
@miekg miekg merged commit 3996b17 into miekg:master Nov 6, 2023
4 checks passed
@tmthrgd tmthrgd deleted the unpackDataOpt_goto branch November 6, 2023 09:46
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.

None yet

2 participants