Skip to content

Commit

Permalink
Merge pull request #4138 from geetanshjuneja/deref
Browse files Browse the repository at this point in the history
Use deref_poiner_as instead of deref_pointer
  • Loading branch information
RalfJung authored Jan 14, 2025
2 parents bd2fb62 + 58f011e commit 10c0371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/unix/macos/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
this.check_no_isolation("`_NSGetExecutablePath`")?;

let buf_ptr = this.read_pointer(buf)?;
let bufsize = this.deref_pointer(bufsize)?;
let bufsize = this.deref_pointer_as(bufsize, this.machine.layouts.u32)?;

// Using the host current_exe is a bit off, but consistent with Linux
// (where stdlib reads /proc/self/exe).
Expand Down

0 comments on commit 10c0371

Please sign in to comment.