[PATCH] D54991: Add interceptors for the rmd160(3) from NetBSD

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 5 01:42:42 PST 2018


vitalybuka requested changes to this revision.
vitalybuka added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7364
+  if (context)
+    COMMON_INTERCEPTOR_READ_RANGE(ctx, context, RMD160_CTX_sz);
+  REAL(RMD160Update)(context, data, len);
----------------
should write context


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7371
+  REAL(RMD160Final)(digest, context);
+  if (digest)
+    COMMON_INTERCEPTOR_WRITE_RANGE(ctx, digest, sizeof(u8) * 20);
----------------
should read context


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:7378
+  if (state)
+    COMMON_INTERCEPTOR_READ_RANGE(ctx, state, sizeof(u32) * 5);
+  if (buffer)
----------------
should write something, maybe both


Repository:
  rL LLVM

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

https://reviews.llvm.org/D54991





More information about the llvm-commits mailing list