[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:32:15 PST 2018


krytarowski added inline comments.


================
Comment at: test/sanitizer_common/TestCases/Posix/arc4random.cc:12
+  time_t now = ::time(nullptr);
+  char buf[10];
+  arc4random_addrandom((unsigned char *)&now, sizeof(now));
----------------
I would move `char buf[10];`, just before the `arc4random_buf` call.


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

https://reviews.llvm.org/D56125





More information about the llvm-commits mailing list