rust-vmm / vm-memory

Virtual machine's guest memory crate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asserts trigger on zero-length access

alexandruag opened this issue · comments

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.

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