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

[backend] Modify domain name length error #254

Merged
merged 4 commits into from
Jun 8, 2023

Conversation

AyyLam
Copy link
Contributor

@AyyLam AyyLam commented May 30, 2023

What does this PR do?

This PR adds more clarity to the error message for when the domain name length is 0 and when integer overflow happens.

Also helps distinguish it from another conditional currently with the same error message:

if bytesReadForNameLen <= 0 {
return nil, fmt.Errorf("illegal namelen")

Reviewer's Checklist

Reviewers: please see the review guidelines

@AyyLam AyyLam marked this pull request as ready for review May 30, 2023 19:24
@AyyLam AyyLam requested review from a team as code owners May 30, 2023 19:24
process/dns_v2.go Outdated Show resolved Hide resolved
process/dns_v2.go Outdated Show resolved Hide resolved
@AyyLam AyyLam requested a review from a team June 7, 2023 18:04
@AyyLam AyyLam changed the title [NET-3124][backend] Modify domain name length error [backend] Modify domain name length error Jun 7, 2023
@AyyLam AyyLam merged commit 839e291 into master Jun 8, 2023
7 checks passed
@AyyLam AyyLam deleted the anthony.lam/domain-namelen-error branch July 18, 2023 21:42
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

3 participants