Skip to content

Conversation

JordanYates
Copy link
Contributor

Add a variant of rpc_server_pull_data that does not expect the provided data offset to be word-aligned. This can be required for commands where the offset is an index, not a memory offset.

Add a variant of `rpc_server_pull_data` that does not expect the
provided data offset to be word-aligned. This can be required for
commands where the offset is an index, not a memory offset.

Signed-off-by: Jordan Yates <[email protected]>
Add the option for `data_receiver` to accept unaligned input data for
testing purposes.

Signed-off-by: Jordan Yates <[email protected]>
Test pulling unaligned data through `rpc_server_pull_data_unaligned`.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates force-pushed the feature/unaligned_rpc_data branch from 4b4b32e to 80dc014 Compare September 29, 2025 07:01
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Fix data buffers never being freed by two commands if a data overrun was
detected.

Signed-off-by: Jordan Yates <[email protected]>
Repeat error tests multiple times to ensure that data buffers are freed
correctly under all code paths.

Signed-off-by: Jordan Yates <[email protected]>
@JordanYates JordanYates force-pushed the feature/unaligned_rpc_data branch from f62562d to 6fe78dd Compare September 29, 2025 10:13
Copy link

@JordanYates JordanYates merged commit f81cf2f into main Sep 29, 2025
16 checks passed
@JordanYates JordanYates deleted the feature/unaligned_rpc_data branch September 29, 2025 11:26
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