mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 04:38:08 +00:00
Make fallthroughs explicit in afl-fuzz-extras.c
Using `__attribute__((fallthrough))` makes fallthroughs explicit in a way the compiler can understand. This allows the enablement of `-Wimplicit-fallthrough`.
This commit is contained in:
@ -455,13 +455,13 @@ void deunicode_extras(afl_state_t *afl) {
|
|||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if (!afl->extras[i].data[j]) { ++z3; }
|
if (!afl->extras[i].data[j]) { ++z3; }
|
||||||
// fall through
|
__attribute__((fallthrough));
|
||||||
case 0:
|
case 0:
|
||||||
if (!afl->extras[i].data[j]) { ++z1; }
|
if (!afl->extras[i].data[j]) { ++z1; }
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
if (!afl->extras[i].data[j]) { ++z4; }
|
if (!afl->extras[i].data[j]) { ++z4; }
|
||||||
// fall through
|
__attribute__((fallthrough));
|
||||||
case 1:
|
case 1:
|
||||||
if (!afl->extras[i].data[j]) { ++z2; }
|
if (!afl->extras[i].data[j]) { ++z2; }
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user