[PATCH] D56125: [Sanitizer] Intercept arc4random_buf on FreeBSD/NetBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 28 04:36:34 PST 2018
krytarowski added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:9092
+ COMMON_INTERCEPTOR_ENTER(ctx, arc4random_buf, buf, len);
+ if (buf && len)
+ COMMON_INTERCEPTOR_READ_RANGE(ctx, buf, len);
----------------
According to my code reading.. `arc4random_buf` only outputs the buffer, it does not read it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56125/new/
https://reviews.llvm.org/D56125
More information about the llvm-commits
mailing list