[compiler-rt] Fix incorrect variable names used
authorLeonard Chan <leonardchan@google.com>
Thu, 2 Dec 2021 19:45:41 +0000 (11:45 -0800)
committerLeonard Chan <leonardchan@google.com>
Thu, 2 Dec 2021 19:46:50 +0000 (11:46 -0800)
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp

index 9b5f6f1..6fdf2c4 100644 (file)
@@ -275,11 +275,11 @@ void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name) {
 }
 
 bool MprotectNoAccess(uptr addr, uptr size) {
-  return _zx_vmar_protect(_zx_vmar_root_self(), 0, Addr, Size) == ZX_OK;
+  return _zx_vmar_protect(_zx_vmar_root_self(), 0, addr, size) == ZX_OK;
 }
 
 bool MprotectReadOnly(uptr addr, uptr size) {
-  return _zx_vmar_protect(_zx_vmar_root_self(), ZX_VM_PERM_READ, Addr, Size) ==
+  return _zx_vmar_protect(_zx_vmar_root_self(), ZX_VM_PERM_READ, addr, size) ==
          ZX_OK;
 }