[PATCH] D58379: [compiler-rt] Intercept the bcmp() function.

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 01:38:10 PST 2019


krytarowski added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:874
+  void *ctx;
+  COMMON_INTERCEPTOR_ENTER(ctx, bcmp, a1, a2, size);
+  if (common_flags()->intercept_memcmp) {
----------------
Can we reuse code with memcmp(3)? bcmp(3) is a subset of memcmp(3).


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58379/new/

https://reviews.llvm.org/D58379





More information about the llvm-commits mailing list