Skip to content

Commit

Permalink
tests: internal: fuzzers: move variable declaration
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored and edsiper committed Jul 3, 2023
1 parent 96961f1 commit fb7d4c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/internal/fuzzers/cmetrics_decode_fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ 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 */
if (size < 1) {
return 0;
}

uint8_t decider = data[0] % 2;
decider = data[0] % 2;

/* Adjust data pointer since the first byte is used */
data += 1;
Expand Down

0 comments on commit fb7d4c8

Please sign in to comment.