From f746a28e71c14ce0adca17e4998514e5d19c317e Mon Sep 17 00:00:00 2001 From: AdamKorcz Date: Sat, 12 Dec 2020 19:26:04 +0000 Subject: [PATCH] Removed 2 typecasts --- fuzzing/format_command_fuzzer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuzzing/format_command_fuzzer.c b/fuzzing/format_command_fuzzer.c index 88d0b7a..e5633b4 100644 --- a/fuzzing/format_command_fuzzer.c +++ b/fuzzing/format_command_fuzzer.c @@ -36,10 +36,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { - if((int)size<3) + if(size<3) return 0; - char *new_str = (char *)malloc(size+1); + char *new_str = malloc(size+1); if (new_str == NULL) return 0;