summaryrefslogtreecommitdiff
path: root/fuzz
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2019-11-24 16:33:34 +0100
committerTim Rühsen <tim.ruehsen@gmx.de>2019-11-24 16:33:34 +0100
commit777049389f3ad0d34d561955525fa786830d4100 (patch)
treee5daeb01fccafa12668e5e332432ce01678ac8b5 /fuzz
parent96d74948a3c2392a23192bc5178ceb4a9bee6235 (diff)
downloadwget-777049389f3ad0d34d561955525fa786830d4100.tar.gz
* fuzz/wget_read_hunk_fuzzer.c: Use cast to fix C++ error
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/wget_read_hunk_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/wget_read_hunk_fuzzer.c b/fuzz/wget_read_hunk_fuzzer.c
index 800cebd2..3b8ea3a5 100644
--- a/fuzz/wget_read_hunk_fuzzer.c
+++ b/fuzz/wget_read_hunk_fuzzer.c
@@ -189,7 +189,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
g_size = size;
g_read = 0;
- struct my_context *ctx = calloc(1, sizeof(struct my_context));
+ struct my_context *ctx = (struct my_context *) calloc(1, sizeof(struct my_context));
fd_register_transport(99, &my_transport, ctx);
while ((hunk = fd_read_hunk(99, response_head_terminator, 512, 65536)))