We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd5605 commit 2f7343fCopy full SHA for 2f7343f
src/shims/native_lib/mod.rs
@@ -242,7 +242,7 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
242
..std::cmp::min(alloc.len(), rg.end.strict_sub(alloc_addr));
243
// Skip forward however many bytes of the access are contained in the current
244
// allocation.
245
- rg.advance_by(overlap.len()).unwrap();
+ rg.advance_by(overlap.len().strict_sub(1)).unwrap();
246
247
match evt {
248
AccessEvent::Read(_) => {
0 commit comments