Skip to content

Check data length it RTP ExtHdr handlers#363

Open
sirzooro wants to merge 1 commit into
pion:mainfrom
sirzooro:rtp_ext_len_check
Open

Check data length it RTP ExtHdr handlers#363
sirzooro wants to merge 1 commit into
pion:mainfrom
sirzooro:rtp_ext_len_check

Conversation

@sirzooro

Copy link
Copy Markdown
Contributor

Added data length checks to OneByteHeaderExtension, TwoByteHeaderExtension and RawExtension to prevent panics. They are probably not used by pion itself (did not check all packages here), so fix is just in case someone else still uses them.

Added data length checks to OneByteHeaderExtension,
TwoByteHeaderExtension and RawExtension to prevent panics. They are
probably not used by pion itself, so fix is just in case someone else
still uses them.
@codecov

codecov Bot commented Jun 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 6.97674% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.71%. Comparing base (77ebb16) to head (668ac70).

Files with missing lines Patch % Lines
header_extension.go 6.97% 20 Missing and 20 partials ⚠️

❌ Your patch check has failed because the patch coverage (6.97%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #363      +/-   ##
==========================================
- Coverage   82.64%   81.71%   -0.94%     
==========================================
  Files          28       28              
  Lines        3440     3483      +43     
==========================================
+ Hits         2843     2846       +3     
- Misses        427      447      +20     
- Partials      170      190      +20     
Flag Coverage Δ
go 81.71% <6.97%> (-0.94%) ⬇️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sirzooro sirzooro requested a review from JoTurk June 21, 2026 13:04
@sirzooro

Copy link
Copy Markdown
Contributor Author

@JoTurk do we still need OneByteHeaderExtension, TwoByteHeaderExtension and RawExtension? I wonder if we could mark them as deprecated and remove in next major version.

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.

1 participant