[PATCH] D45525: [sanitizer] Correct name length computation for some Fuchsia vmos

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 11:58:31 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT329842: [sanitizer] Correct name length computation for some Fuchsia vmos (authored by cryptoad, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45525?vs=142029&id=142056#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D45525

Files:
  lib/sanitizer_common/sanitizer_fuchsia.cc


Index: lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- lib/sanitizer_common/sanitizer_fuchsia.cc
+++ lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -272,7 +272,7 @@
       ReportMmapFailureAndDie(map_size, name, "zx_vmo_create", status);
     return 0;
   }
-  _zx_object_set_property(vmo, ZX_PROP_NAME, name, sizeof(name) - 1);
+  _zx_object_set_property(vmo, ZX_PROP_NAME, name, internal_strlen(name));
   DCHECK_GE(base + size_, map_size + offset);
   uintptr_t addr;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45525.142056.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180411/6c8f3e46/attachment.bin>


More information about the llvm-commits mailing list