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 bug in inspect implementation and add a test #422

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

ulyssa
Copy link
Contributor

@ulyssa ulyssa commented Aug 29, 2024

This fixes an issue @junichi-hata reported with using the inspect hostcall. I called GuestPtr::array with the full length of the buffer the guest had allocated instead of the length of the source slice, which results in copy_from_slice returning a SliceLengthsDiffer error when used. This fixes which length is used, and, now that the updated SDK is available, adds a test to exercise the inspect path.

@ulyssa ulyssa requested review from elliottt and acw August 29, 2024 00:53
@ulyssa ulyssa merged commit 9d88e38 into main Aug 29, 2024
15 checks passed
@ulyssa ulyssa deleted the ulyssa/fix-inspect-bug branch August 29, 2024 01:18
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.

2 participants