Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tacet <[email protected]>
  • Loading branch information
mschwager and AdvenamTacet authored Feb 21, 2024
1 parent 376e767 commit cab21da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/dummy/dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// https://llvm.org/docs/LibFuzzer.html#toy-example
static int _c_dummy_test_one_input(const uint8_t *data, size_t size)
{
char boom = 'x';
volatile char boom = 'x';
char test[] = {'a', 'b', 'c'};

if (size == 2) {
Expand All @@ -17,6 +17,7 @@ static int _c_dummy_test_one_input(const uint8_t *data, size_t size)
ptr[0] = 'x';
free(ptr);
boom = ptr[0];
(void) boom;
}
}
}
Expand Down

0 comments on commit cab21da

Please sign in to comment.