Skip to content

Commit 4f3c1bb

Browse files
committed
Pass dest place to all pwrite
1 parent 9c07581 commit 4f3c1bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/shims/unix/fd.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub trait FileDescription: std::fmt::Debug + Any {
7171
_communicate_allowed: bool,
7272
_bytes: &[u8],
7373
_offset: u64,
74+
_dest: &MPlaceTy<'tcx>,
7475
_ecx: &mut MiriInterpCx<'tcx>,
7576
) -> InterpResult<'tcx, io::Result<usize>> {
7677
throw_unsup_format!("cannot pwrite to {}", self.name());
@@ -636,7 +637,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
636637
this.write_scalar(res, dest)?;
637638
return Ok(());
638639
};
639-
fd.pwrite(communicate, &bytes, offset, this)
640+
fd.pwrite(communicate, &bytes, offset, dest, this)
640641
}
641642
};
642643

src/shims/unix/fs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ impl FileDescription for FileHandle {
9292
communicate_allowed: bool,
9393
bytes: &[u8],
9494
offset: u64,
95+
_dest: &MPlaceTy<'tcx>,
9596
_ecx: &mut MiriInterpCx<'tcx>,
9697
) -> InterpResult<'tcx, io::Result<usize>> {
9798
assert!(communicate_allowed, "isolation should have prevented even opening a file");

0 commit comments

Comments
 (0)