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

Socket address decoding issue repro for #968 #976

Closed
wants to merge 1 commit into from

Conversation

Matthias247
Copy link
Contributor

This change shows that socket addresses are not properly decoded
once the address is zero-initialized and not non-initialized.

Log entries show:

Jan 14 19:06:05.373 TRACE quinn::platform::imp: Sending datagram to [::ffff:127.0.0.1]:46146
Jan 14 19:06:05.373 TRACE quinn::platform::imp: Received datagram from 115.127.0.0:56707
Jan 14 19:06:05.376 TRACE quinn::platform::imp: Sending datagram to 115.127.0.0:56707

I think the addresses are somehow shifted by 1 byte, but don't fully
understand how this didn't happen before with non-initialized buffers.

This change shows that socket addresses are not properly decoded
once the address is zero-initialized and not non-initialized.

Log entries show:
```
Jan 14 19:06:05.373 TRACE quinn::platform::imp: Sending datagram to [::ffff:127.0.0.1]:46146
Jan 14 19:06:05.373 TRACE quinn::platform::imp: Received datagram from 115.127.0.0:56707
Jan 14 19:06:05.376 TRACE quinn::platform::imp: Sending datagram to 115.127.0.0:56707
```

I think the addresses are somehow shifted by 1 byte, but don't fully
understand how this didn't happen before with non-initialized buffers.
@djc
Copy link
Member

djc commented Jan 28, 2021

Now that we have #987, I don't think we need this anymore.

@djc djc closed this Jan 28, 2021
@Matthias247 Matthias247 deleted the repro branch February 22, 2021 02:25
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