We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78fdd59 commit 9f13ac8Copy full SHA for 9f13ac8
src/tools/miri/src/shims/unix/macos/foreign_items.rs
@@ -120,7 +120,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
120
this.check_no_isolation("`_NSGetExecutablePath`")?;
121
122
let buf_ptr = this.read_pointer(buf)?;
123
- let bufsize = this.deref_pointer(bufsize)?;
+ let bufsize = this.deref_pointer_as(bufsize, this.machine.layouts.u32)?;
124
125
// Using the host current_exe is a bit off, but consistent with Linux
126
// (where stdlib reads /proc/self/exe).
0 commit comments