Skip to content

Fix udprpc buffer copy#654

Open
mkeeter wants to merge 1 commit intomasterfrom
mkeeter/fix-udprpc-buf-len
Open

Fix udprpc buffer copy#654
mkeeter wants to merge 1 commit intomasterfrom
mkeeter/fix-udprpc-buf-len

Conversation

@mkeeter
Copy link
Copy Markdown
Contributor

@mkeeter mkeeter commented May 5, 2026

In #608, we changed the udprpc backend to truncate the returned buffer based on the actual number of bytes received. However, we still tried to copy nreply bytes out of that buffer. This fails if the reply type has been serialized (e.g. with Hubpack) and is shorter than the maximal nreply.

This PR changes the implementation to extract and copy the (variable-size) reply portion of the buffer, instead of a fixed nbytes-sized chunk.

Fixes #653, tested on niles

@mkeeter mkeeter requested review from adamlouis and labbott May 5, 2026 14:04
@mkeeter mkeeter force-pushed the mkeeter/fix-udprpc-buf-len branch from eda8170 to bd51558 Compare May 5, 2026 16:30
@mkeeter mkeeter force-pushed the mkeeter/fix-udprpc-buf-len branch from bd51558 to aff05e1 Compare May 5, 2026 21: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.

humility monorail status panic

1 participant