Added deref_poiner_as in _NSGetExecutablePath

This commit is contained in:
geetanshjuneja 2025-01-13 11:19:41 +05:30
parent 78fdd59343
commit 9f13ac8e6b

View file

@ -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).