Skip to content

Commit e383a47

Browse files
StrophoxRalfJung
andauthored
Add FIXME in src/tools/miri/src/shims/native_lib.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 8b90dee commit e383a47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tools/miri/src/shims/native_lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
168168
this.prepare_for_native_call(alloc_id, prov)?;
169169
}
170170
}
171+
172+
// FIXME: In the future, we should also call `prepare_for_native_call` on all previously
173+
// exposed allocations, since C may access any of them.
171174

172175
// Convert them to `libffi::high::Arg` type.
173176
let libffi_args = libffi_args

0 commit comments

Comments
 (0)