[PATCH] D44049: OpenBSD UBsan support enabling SANITIZER_OPENBSD widely

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 16:11:32 PST 2018


vitalybuka accepted this revision.
vitalybuka added a comment.
This revision is now accepted and ready to land.

Seems like it needs clang format



================
Comment at: lib/sanitizer_common/sanitizer_posix_libcdep.cc:125
+#if SANITIZER_OPENBSD
+#define RLIMIT_AS RLIMIT_DATA
+#endif
----------------
Maybe make it more generic and avoid new definition?


```
#if defined(RLIMIT_AS)
  int rlimit =  RLIMIT_AS;
#else
  int rlimit = RLIMIT_DATA;
#endif
  rlim_t as_size = getlim(rlimit);
```


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44049





More information about the llvm-commits mailing list