-
Notifications
You must be signed in to change notification settings - Fork 1.2k
dns/dnsmessage: reject packing of 255B rooted names, reject unpacking of 256B (dns encoded) names #156
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
Conversation
|
This PR (HEAD: 21c1869) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/net/+/448156 to see it. Tip: You can toggle comments from me using the |
|
This PR (HEAD: a4604d8) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/net/+/448156 to see it. Tip: You can toggle comments from me using the |
|
Message from Damien Neil: Patch Set 4: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Mateusz Poliwczak: Patch Set 4: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
This PR (HEAD: 5873c64) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/net/+/448156 to see it. Tip: You can toggle comments from me using the |
|
Message from Mateusz Poliwczak: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Damien Neil: Patch Set 5: Run-TryBot+1 (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Gopher Robot: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Damien Neil: Patch Set 5: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Gopher Robot: Patch Set 5: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Michael Knyszek: Patch Set 5: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
5873c64 to
ddf151a
Compare
|
This PR (HEAD: ddf151a) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/net/+/448156 to see it. Tip: You can toggle comments from me using the |
|
Message from Mateusz Poliwczak: Patch Set 6: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
|
Message from Gopher Robot: Patch Set 6: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/448156. |
… of 256B (dns encoded) names Packing a 255B (rooted) name will create an 256B (dns encoded) name, which is an invalid name. Similar with unpacking, we can't unpack 256B (dns encoded) name, because it is too long. Change-Id: I17cc93a93a17a879a2a789629e56ad39999da9ac GitHub-Last-Rev: ddf151a GitHub-Pull-Request: #156 Reviewed-on: https://go-review.googlesource.com/c/net/+/448156 Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Damien Neil <dneil@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Mateusz Poliwczak <mpoliwczak34@gmail.com>
|
This PR is being closed because golang.org/cl/448156 has been merged. |
Packing a 255B (rooted) name will create an 256B (dns encoded) name, which is an invalid name. Similar with unpacking, we can't unpack 256B (dns encoded) name, because it is too long.