[PATCH] D42020: Correct ctype(3) functions with NLS on NetBSD

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 12:26:57 PST 2018


vitalybuka added a comment.

Please update compiler-rt/test/msan/setlocale.cc



================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:3174
+#if SANITIZER_NETBSD
+    // Valid array indices: -1 (EOF), 0, 1, .. 255
+    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, _ctype_tab_, 257 * sizeof(short));
----------------
should this be done only for category == LC_CTYPE 


Repository:
  rL LLVM

https://reviews.llvm.org/D42020





More information about the llvm-commits mailing list