[PATCH] D71740: [msan] Intercept qsort, qsort_r.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 18:08:10 PST 2019
vitalybuka added inline comments.
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc:9686
+static THREADLOCAL SIZE_T qsort_r_size;
+int wrapped_qsort_r_compar(const void *a, const void *b, void *arg) {
+ COMMON_INTERCEPTOR_UNPOISON_PARAM(3);
----------------
you can wrap <qsort_r_size, qsort_r_compar, arg> and pass as arg
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71740/new/
https://reviews.llvm.org/D71740
More information about the llvm-commits
mailing list