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

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 16:48:11 PST 2018


vitalybuka accepted this revision.
vitalybuka added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:3195
+  // These arrays contain 256 regular elements in unsigned char range + 1 EOF
+  COMMON_INTERCEPTOR_WRITE_RANGE(ctx, _ctype_tab_, 257 * sizeof(short));
+  COMMON_INTERCEPTOR_WRITE_RANGE(ctx, _toupper_tab_, 257 * sizeof(short));
----------------
How about new file:
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_netbsd.inc

and moving all netbsd pieces there?
It's OK to do as a followup patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D42020





More information about the llvm-commits mailing list