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 checksum check for received packets #300

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

tuexen
Copy link
Contributor

@tuexen tuexen commented Feb 23, 2024

Only the following packets should be accepted:

  • Packets with a correct CRC32c checksum.
  • Packets with an incorrect zero checksum, if its acceptance is allowed.

In particular, packets with an incorrect non-zero CRC32c must be discarded.

Only the following packets should be accepted:
* Packets with a correct CRC32c checksum.
* Packets with an incorrect zero checksum, if its
  acceptance is allowed.
In particular, packets with an incorrect non-zero CRC32c
must be discarded.
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.62%. Comparing base (ee5f2e7) to head (d5f1a88).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #300      +/-   ##
==========================================
- Coverage   80.66%   80.62%   -0.05%     
==========================================
  Files          49       49              
  Lines        4123     4123              
==========================================
- Hits         3326     3324       -2     
- Misses        652      653       +1     
- Partials      145      146       +1     
Flag Coverage Δ
go 80.62% <100.00%> (-0.05%) ⬇️
wasm 66.91% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tuexen tuexen requested a review from mengelbart February 23, 2024 20:30
@edaniels
Copy link
Member

I'll try to look at this Monday!

@tuexen
Copy link
Contributor Author

tuexen commented Feb 25, 2024

I'll try to look at this Monday!

Great thanks! I also have a local patch to fix the handling of the parameter during the handshake. But I'll submit that one, once this has been dealt with.

Copy link
Member

@edaniels edaniels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@edaniels edaniels merged commit 76ae7f1 into pion:master Feb 26, 2024
13 checks passed
@tuexen tuexen deleted the fix-checksum-check branch February 27, 2024 13:57
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.

2 participants