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

validate high order two bits of first dns label octet #494

Merged
merged 5 commits into from
Jan 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! validate high order two bits of first dns label octet
  • Loading branch information
bwillcoxpubfork committed Dec 13, 2022
commit 45df48a6ca83407f5549a6548dbf7f421b2c9e65
2 changes: 1 addition & 1 deletion src/dns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void DNS::skip_to_dname_end(InputMemoryStream& stream) const {
// This is an actual label, skip its contents
stream.skip(value);
} else {
// high order two bits of a label must be either 11 or 00
// high order two bits of the first octet of a label must be either 11 or 00
throw malformed_packet();
}
}
Expand Down