From c585e21a10582d3c5f608c04d851f01f04dc587c Mon Sep 17 00:00:00 2001 From: Li zeming Date: Tue, 13 Sep 2022 12:25:27 +0800 Subject: [PATCH] Fuzzer: The return value of malloc is void *, it does not need to be forced to change the type Signed-off-by: Li zeming --- tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c b/tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c index 0d76ea49e..dfd9aa963 100644 --- a/tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c +++ b/tests/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c @@ -31,7 +31,7 @@ int main(int argc, char **argv) { fseek(f, 0, SEEK_END); size_t len = ftell(f); fseek(f, 0, SEEK_SET); - unsigned char *buf = (unsigned char*)malloc(len); + unsigned char *buf = malloc(len); size_t n_read = fread(buf, 1, len, f); assert(n_read == len); LLVMFuzzerTestOneInput(buf, len);