Skip to content

Avoid quadratic copying in AV1 fragment reassembly - #380

Merged
JoTurk merged 1 commit into
mainfrom
jo/fix-quadratic-copy
Oct 20, 2026
Merged

JoTurk merged 1 commit into
mainfrom
jo/fix-quadratic-copy

Conversation

@JoTurk

@JoTurk JoTurk commented Oct 20, 2026

Copy link
Copy Markdown
Member

Description

Grow the fragment buffer with append instead of copying it for each packet.

Reference issue

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-VT2V63ST.

Refs: pion/webrtc#3641

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.15%. Comparing base (f34b779) to head (9a8f935).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #380   +/-   ##
=======================================
  Coverage   88.14%   88.15%           
=======================================
  Files          28       28           
  Lines        3172     3173    +1     
=======================================
+ Hits         2796     2797    +1     
  Misses        376      376           
Flag Coverage Δ
go 88.15% <100.00%> (+<0.01%) ⬆️

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.

Grow the fragment buffer with append instead of
copying it for each packet.

Discovered by Anthropic's OSS Scanner,
as vulnerability ANT-2026-VT2V63ST.

Refs: pion/webrtc#3641
@JoTurk
JoTurk force-pushed the jo/fix-quadratic-copy branch from 40ccd09 to 9a8f935 Compare October 20, 2026 23:57
@JoTurk
JoTurk merged commit 9a8f935 into main Oct 20, 2026
19 checks passed
@JoTurk
JoTurk deleted the jo/fix-quadratic-copy branch October 21, 2026 00:00
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