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 nested packet size #17

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Fix nested packet size #17

merged 1 commit into from
Feb 3, 2025

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Jan 30, 2025

(stacked on top of #16 )

We were previously double-counting nested packet sizes: both in the parent packet's MINIMUM_SIZE, and again when calling the inner packet_size(). This wasn't an issue when the only nested packets were Repeated<..> (with a minimum size of 0), but #16 lets us nest a single header within another.

@mkeeter mkeeter requested a review from FelixMcFelix January 30, 2025 20:08
@mkeeter mkeeter changed the base branch from main to mkeeter/fix-single-subparse January 30, 2025 20:08
Copy link
Collaborator

@FelixMcFelix FelixMcFelix left a comment

Choose a reason for hiding this comment

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

Yeah, I see where that's going wrong. Thanks for fixing this!

Base automatically changed from mkeeter/fix-single-subparse to main February 3, 2025 21:35
@mkeeter mkeeter force-pushed the mkeeter/nested-packet-size branch from 0583b8a to 72c5d20 Compare February 3, 2025 21:36
@mkeeter mkeeter merged commit 1cb075c into main Feb 3, 2025
1 check passed
@mkeeter mkeeter deleted the mkeeter/nested-packet-size branch February 3, 2025 21:36
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