StephanvanSchaik / mmap-rs

A cross-platform and safe Rust API to create and manage memory mappings in the virtual address space of the calling process.
Apache License 2.0
61 stars 17 forks source link

Fix size calculation of mapping returned by `split_to`. #20

Closed manon-traverse closed 1 year ago

manon-traverse commented 1 year ago

The returned mapping had a range of [0, size) instead of [0, at).

StephanvanSchaik commented 1 year ago

Good catch. Thank you for the PR!