[PATCH] D29602: [libFuzzer] Fix Load test.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 16:13:55 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL294378: [libFuzzer] Update Load test to work on 32 bits. (authored by mpividori).

Changed prior to commit:
  https://reviews.llvm.org/D29602?vs=87292&id=87546#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D29602

Files:
  llvm/trunk/lib/Fuzzer/test/LoadTest.cpp


Index: llvm/trunk/lib/Fuzzer/test/LoadTest.cpp
===================================================================
--- llvm/trunk/lib/Fuzzer/test/LoadTest.cpp
+++ llvm/trunk/lib/Fuzzer/test/LoadTest.cpp
@@ -14,7 +14,7 @@
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
   if (Size < 8) return 0;
-  size_t a = 0;
+  uint64_t a = 0;
   memcpy(&a, Data, 8);
   Sink = array[a % (kArraySize + 1)];
   return 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29602.87546.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170208/39f793eb/attachment.bin>


More information about the llvm-commits mailing list