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

Open
wants to merge 1 commit into
base: mkeeter/fix-single-subparse
Choose a base branch
from

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
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