-
Notifications
You must be signed in to change notification settings - Fork 922
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
DNSName: correct len and offset types #13723
Conversation
Pull Request Test Coverage Report for Build 7623113506Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
d83edfb
to
bdc207c
Compare
I'm wondering if it would be better to move the formatting of the files to a different pull request, so that we can focus on the (hopefully) non-impact of the type changes in this PR? In theory it should not matter but we get clang-tidy warnings for the whole PR, not per commit, so it feels like this PR is changing a lot of things when it isn't. |
Agreed. I'll also stick to not format/clean anything not required. |
bdc207c
to
7b3df79
Compare
7b3df79
to
cce0983
Compare
1ebcf92
to
05fe745
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me, there is no valid reason for the length or the offset to be negative. Of course there is a small risk than an existing piece of code relies on the existing behaviour, but then I think it's a bug that needs to be fixed.
I just pushed a commit to a throw-away branch (https://github.com/rgacogne/pdns/tree/dnsname-test-negative) that aborts if the length or the offset is negative, let's see if it passes our CI.
The CI run was successful! I would not mind at least one other review before merging this PR, though :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit
Short description
This PR
formatcorrects the type ofdnsname.{hh,cc}
files andlen
andoffset
arguments fromint
tosize_t
.Checklist
I have: