rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
299 stars 97 forks source link

Check `try_access` callback length #260

Closed JonathanWoollett-Light closed 9 months ago

JonathanWoollett-Light commented 9 months ago

Summary of the PR

Check the length returned by the callback in try_access does not exceed the address range.

Fixes: https://github.com/rust-vmm/vm-memory/issues/269

Requirements

Before submitting your PR, please make sure you addressed the following requirements: