From fb7d4c8c9b22a2e73787a029e89df769e0c0267b Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Fri, 30 Jun 2023 06:29:34 -0700 Subject: [PATCH] tests: internal: fuzzers: move variable declaration Signed-off-by: David Korczynski --- tests/internal/fuzzers/cmetrics_decode_fuzz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/internal/fuzzers/cmetrics_decode_fuzz.c b/tests/internal/fuzzers/cmetrics_decode_fuzz.c index 78f2bc03111..7ddd1ab2197 100644 --- a/tests/internal/fuzzers/cmetrics_decode_fuzz.c +++ b/tests/internal/fuzzers/cmetrics_decode_fuzz.c @@ -26,6 +26,7 @@ LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) struct cfl_list decoded_contexts; struct cmt *cmt = NULL; size_t off = 0; + uint8_t decider; int result; /* At least one byte is needed for deciding which decoder to use */ @@ -33,7 +34,7 @@ LLVMFuzzerTestOneInput(const uint8_t * data, size_t size) return 0; } - uint8_t decider = data[0] % 2; + decider = data[0] % 2; /* Adjust data pointer since the first byte is used */ data += 1;