Skip to content

fix(onion): Size GCA announce response buffer to actual content length. - #3050

Merged
Green-Sky merged 1 commit into
TokTok:masterfrom
Green-Sky:gc-announce-fix
May 23, 2026
Merged

fix(onion): Size GCA announce response buffer to actual content length.#3050
Green-Sky merged 1 commit into
TokTok:masterfrom
Green-Sky:gc-announce-fix

Conversation

@Green-Sky

@Green-Sky Green-Sky commented May 22, 2026

Copy link
Copy Markdown
Member

Add GCA_ANNOUNCE_RESPONSE_MAX_SIZE to capture the true upper bound of a GCA-extended announce response, and allocate the response buffer dynamically to match the exact plaintext size rather than using the non-GCA constant. Update onion_client.c to accept responses up to the new bound. Add a group announce response size test.


This change is Reviewable

@Green-Sky Green-Sky added this to the v0.2.23 milestone May 22, 2026
@github-actions github-actions Bot added the bug Bug fix for the user, not a fix to a build script label May 22, 2026
Add GCA_ANNOUNCE_RESPONSE_MAX_SIZE to capture the true upper bound of
a GCA-extended announce response, and allocate the response buffer
dynamically to match the exact plaintext size rather than using the
non-GCA constant. Update onion_client.c to accept responses up to the
new bound. Add a group announce response size test.
@Green-Sky
Green-Sky requested a review from a team May 22, 2026 09:00

@JFreegman JFreegman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@JFreegman reviewed 7 files and all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained.

@Green-Sky
Green-Sky merged commit 2385300 into TokTok:master May 23, 2026
80 of 81 checks passed
@Green-Sky
Green-Sky deleted the gc-announce-fix branch May 23, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bug fix for the user, not a fix to a build script

Development

Successfully merging this pull request may close these issues.

3 participants