Skip to content

Commit 2bfccbb

Browse files
committed
rename Pointer::from_addr_invalid to match strict provenance API
1 parent 3814ea3 commit 2bfccbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/unix/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
4949
&& matches!(&*this.tcx.sess.target.os, "macos" | "solaris" | "illumos")
5050
&& (flags & map_fixed) != 0
5151
{
52-
return interp_ok(Scalar::from_maybe_pointer(Pointer::from_addr_invalid(addr), this));
52+
return interp_ok(Scalar::from_maybe_pointer(Pointer::without_provenance(addr), this));
5353
}
5454

5555
let prot_read = this.eval_libc_i32("PROT_READ");

0 commit comments

Comments
 (0)