about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-01-14 08:13:25 +0000
committerGitHub <noreply@github.com>2025-01-14 08:13:25 +0000
commitd40f2f77bf372b0ce5fc16000c6ec1b95bd654c0 (patch)
tree4954fbbdb04d9a6999d7748fc7c1c66632f7de33
parentd001bd14c2ad4310dae0c47a1607e67acacc62dd (diff)
parent9f13ac8e6bd2eb7ee622f82ced40bbf8c27df466 (diff)
downloadrust-d40f2f77bf372b0ce5fc16000c6ec1b95bd654c0.tar.gz
rust-d40f2f77bf372b0ce5fc16000c6ec1b95bd654c0.zip
Merge pull request #4138 from geetanshjuneja/deref
Use deref_poiner_as instead of deref_pointer
-rw-r--r--src/tools/miri/src/shims/unix/macos/foreign_items.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/shims/unix/macos/foreign_items.rs b/src/tools/miri/src/shims/unix/macos/foreign_items.rs
index 2afe0b5cd30..85c963774a1 100644
--- a/src/tools/miri/src/shims/unix/macos/foreign_items.rs
+++ b/src/tools/miri/src/shims/unix/macos/foreign_items.rs
@@ -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).