projects
/
platform
/
upstream
/
lz4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5acfb15
)
fuzzer: fix explicit cast for C++
author
Yann Collet
<cyan@fb.com>
Wed, 17 Apr 2019 22:44:14 +0000
(15:44 -0700)
committer
Yann Collet
<cyan@fb.com>
Wed, 17 Apr 2019 22:44:14 +0000
(15:44 -0700)
tests/fuzzer.c
patch
|
blob
|
history
diff --git
a/tests/fuzzer.c
b/tests/fuzzer.c
index
0eece15
..
234be7c
100644
(file)
--- a/
tests/fuzzer.c
+++ b/
tests/fuzzer.c
@@
-487,7
+487,7
@@
static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c
/* Decompression tests */
/* Test decompress_fast() with input buffer size exactly correct => must not read out of bound */
- { char* const cBuffer_exact = malloc((size_t)compressedSize);
+ { char* const cBuffer_exact =
(char*)
malloc((size_t)compressedSize);
assert(cBuffer_exact != NULL);
memcpy(cBuffer_exact, compressedBuffer, compressedSize);