Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

wasicall: fix iovec encoding #52

Merged
merged 2 commits into from
Jun 4, 2023
Merged

wasicall: fix iovec encoding #52

merged 2 commits into from
Jun 4, 2023

Conversation

achille-roussel
Copy link
Contributor

I investigated the reason why we sometimes recorded the full 4096 bytes of the input buffer when reading from sockets which showed up in #43

The size is sometimes negative AND errno is zero, which I think is due to dispatchrun/wasi-go#35

This PR adds unit tests for the function encoding I/O vectors, and a fix to handle negative sizes.

Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
@achille-roussel achille-roussel merged commit f3f61e0 into main Jun 4, 2023
3 checks passed
@achille-roussel achille-roussel deleted the fix-iovec-encoding branch June 4, 2023 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants