@@ -32,6 +32,7 @@ pub trait FileDescription: std::fmt::Debug + Any {
3232 _communicate_allowed : bool ,
3333 _bytes : & mut [ u8 ] ,
3434 _ptr : Pointer ,
35+ _dest : & MPlaceTy < ' tcx > ,
3536 _ecx : & mut MiriInterpCx < ' tcx > ,
3637 ) -> InterpResult < ' tcx , io:: Result < usize > > {
3738 throw_unsup_format ! ( "cannot read from {}" , self . name( ) ) ;
@@ -128,6 +129,7 @@ impl FileDescription for io::Stdin {
128129 communicate_allowed : bool ,
129130 bytes : & mut [ u8 ] ,
130131 _ptr : Pointer ,
132+ _dest : & MPlaceTy < ' tcx > ,
131133 _ecx : & mut MiriInterpCx < ' tcx > ,
132134 ) -> InterpResult < ' tcx , io:: Result < usize > > {
133135 if !communicate_allowed {
@@ -571,7 +573,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
571573
572574 let mut bytes = vec ! [ 0 ; usize :: try_from( count) . unwrap( ) ] ;
573575 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) ,
575577 Some ( offset) => {
576578 let Ok ( offset) = u64:: try_from ( offset) else {
577579 let einval = this. eval_libc ( "EINVAL" ) ;
0 commit comments