diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2020-09-14 22:13:09 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2020-09-16 09:15:46 +0200 |
commit | 6539b769e677bc1e6f4954d4457aba0cd138468b (patch) | |
tree | 2ed576f48735612b883c10e787dbcc8a0c8e36f2 /test | |
parent | bdddb86ae490468514681884fb9cf619a26bce94 (diff) |
Add missing z_const to fuzzers.
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzz/example_dict_fuzzer.c | 2 | ||||
-rw-r--r-- | test/fuzz/example_flush_fuzzer.c | 2 | ||||
-rw-r--r-- | test/fuzz/example_small_fuzzer.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/fuzz/example_dict_fuzzer.c b/test/fuzz/example_dict_fuzzer.c index 3245c2b..027c9a8 100644 --- a/test/fuzz/example_dict_fuzzer.c +++ b/test/fuzz/example_dict_fuzzer.c @@ -79,7 +79,7 @@ void test_dict_deflate(unsigned char **compr, size_t *comprLen) { c_stream.next_out = *compr; c_stream.avail_out = (unsigned int)(*comprLen); - c_stream.next_in = data; + c_stream.next_in = (z_const unsigned char *)data; c_stream.avail_in = (uint32_t)dataLen; err = PREFIX(deflate)(&c_stream, Z_FINISH); diff --git a/test/fuzz/example_flush_fuzzer.c b/test/fuzz/example_flush_fuzzer.c index 9ed42b7..81ec7e3 100644 --- a/test/fuzz/example_flush_fuzzer.c +++ b/test/fuzz/example_flush_fuzzer.c @@ -40,7 +40,7 @@ void test_flush(unsigned char *compr, z_size_t *comprLen) { err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = (const unsigned char *)data; + c_stream.next_in = (z_const unsigned char *)data; c_stream.next_out = compr; c_stream.avail_in = 3; c_stream.avail_out = (unsigned int)*comprLen; diff --git a/test/fuzz/example_small_fuzzer.c b/test/fuzz/example_small_fuzzer.c index df8426c..d02a812 100644 --- a/test/fuzz/example_small_fuzzer.c +++ b/test/fuzz/example_small_fuzzer.c @@ -40,7 +40,7 @@ void test_deflate(unsigned char *compr, size_t comprLen) { err = PREFIX(deflateInit)(&c_stream, Z_DEFAULT_COMPRESSION); CHECK_ERR(err, "deflateInit"); - c_stream.next_in = (const unsigned char *)data; + c_stream.next_in = (z_const unsigned char *)data; c_stream.next_out = compr; while (c_stream.total_in != len && c_stream.total_out < comprLen) { |