[PATCH] D48657: [sanitizer] zx_cprng_draw no longer takes the output argument

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 09:54:19 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL335755: [sanitizer] zx_cprng_draw no longer takes the output argument (authored by phosek, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D48657?vs=153110&id=153113#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48657

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -472,9 +472,7 @@
 
 bool GetRandom(void *buffer, uptr length, bool blocking) {
   CHECK_LE(length, ZX_CPRNG_DRAW_MAX_LEN);
-  size_t size;
-  CHECK_EQ(_zx_cprng_draw(buffer, length, &size), ZX_OK);
-  CHECK_EQ(size, length);
+  CHECK_EQ(_zx_cprng_draw(buffer, length), ZX_OK);
   return true;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48657.153113.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/9ecbf4ca/attachment.bin>


More information about the llvm-commits mailing list