rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
309 stars 103 forks source link

Asserts trigger on zero-length access #106

Closed alexandruag closed 4 years ago

alexandruag commented 4 years ago

Some asserts (such as assert!(offset < count); in read_from and write_to) get triggered when the respective methods are called with count == 0. It's an edge case, but still valid and we should not treat this as an exceptional situation.

alexandruag commented 4 years ago

PRs have been merged and releases v0.1.2 and v0.2.2 have been published.