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 issue with Packet.PaddingSize #284

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

strangesast
Copy link
Contributor

memory from previous calls to Unmarshal is not correctly reset with zero value. this causes issues when decoding packets into the same packet interface and causes payloads to be decoded incorrectly

Screenshot 2024-11-26 at 9 33 56 AM

fix issue where subsequent unmarshalled packets are not
initialized with correct padding size
@Sean-Der Sean-Der force-pushed the fix-packet-paddingsize branch from 3d2cbaf to 4566524 Compare December 17, 2024 16:20
@Sean-Der
Copy link
Member

Amazing, thank you so much @strangesast sorry this took so long :(

@Sean-Der Sean-Der merged commit f08de1e into pion:master Dec 17, 2024
12 checks passed
Copy link

codecov bot commented Dec 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.71%. Comparing base (a21194e) to head (4566524).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
- Coverage   83.95%   83.71%   -0.25%     
==========================================
  Files          24       24              
  Lines        1957     2450     +493     
==========================================
+ Hits         1643     2051     +408     
- Misses        255      340      +85     
  Partials       59       59              
Flag Coverage Δ
go 83.71% <100.00%> (-0.25%) ⬇️
wasm 83.02% <100.00%> (-0.33%) ⬇️

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.

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