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

Fix computation of message length #12

Merged
merged 2 commits into from
Sep 15, 2023
Merged

Fix computation of message length #12

merged 2 commits into from
Sep 15, 2023

Conversation

bbannier
Copy link
Contributor

@bbannier bbannier commented Sep 13, 2023

Closes #10.
Closes #11.

As of zeek/zeek@fe8390c `dns_msg` also
contains `AD` and `CD` bits which changes the baseline. Instead of
adding test logic for unsupported Zeek versions only run this test for
newer versions.
@bbannier bbannier self-assigned this Sep 13, 2023
@bbannier bbannier marked this pull request as ready for review September 13, 2023 11:30
@bbannier bbannier requested a review from rsmmr September 13, 2023 11:30
@bbannier bbannier marked this pull request as draft September 13, 2023 11:40
@bbannier bbannier marked this pull request as ready for review September 13, 2023 12:52
analyzer/analyzer.spicy Outdated Show resolved Hide resolved
`ResourceRecord.rdlen` is the length of the payload in `bytes`, but we
used it as the number of entries for `TXT` records. With this patch we
compute the correct length by setting up a view of the correct size;
this also fix issues with different record types where they would not
consume not the correct amount of input.

Closes #10.
Closes #11.
@bbannier bbannier merged commit 16bc483 into main Sep 15, 2023
3 checks passed
@bbannier bbannier deleted the topic/bbannier/issue-10 branch September 15, 2023 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment