@@ -32,6 +32,7 @@ pub trait FileDescription: std::fmt::Debug + Any {
32
32
_communicate_allowed : bool ,
33
33
_bytes : & mut [ u8 ] ,
34
34
_ptr : Pointer ,
35
+ _dest : & MPlaceTy < ' tcx > ,
35
36
_ecx : & mut MiriInterpCx < ' tcx > ,
36
37
) -> InterpResult < ' tcx , io:: Result < usize > > {
37
38
throw_unsup_format ! ( "cannot read from {}" , self . name( ) ) ;
@@ -128,6 +129,7 @@ impl FileDescription for io::Stdin {
128
129
communicate_allowed : bool ,
129
130
bytes : & mut [ u8 ] ,
130
131
_ptr : Pointer ,
132
+ _dest : & MPlaceTy < ' tcx > ,
131
133
_ecx : & mut MiriInterpCx < ' tcx > ,
132
134
) -> InterpResult < ' tcx , io:: Result < usize > > {
133
135
if !communicate_allowed {
@@ -571,7 +573,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
571
573
572
574
let mut bytes = vec ! [ 0 ; usize :: try_from( count) . unwrap( ) ] ;
573
575
let result = match offset {
574
- None => fd. read ( & fd, communicate, & mut bytes, buf, this) ,
576
+ None => fd. read ( & fd, communicate, & mut bytes, buf, dest , this) ,
575
577
Some ( offset) => {
576
578
let Ok ( offset) = u64:: try_from ( offset) else {
577
579
let einval = this. eval_libc ( "EINVAL" ) ;
0 commit comments