about summary refs log tree commit diff
path: root/src/afl-fuzz-extras.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2024-07-01 17:12:42 +0200
committerGitHub <noreply@github.com>2024-07-01 17:12:42 +0200
commitdcd2f9ac77144a7a7d7f10efd7a5b47c474a4022 (patch)
tree29d6ae2e36203733b49bea6749997501f65ee3df /src/afl-fuzz-extras.c
parent62b3a1e8007ba1472a78a3f55e887c875846f56a (diff)
parent37d9afc5ccf0b37edc6744a5edf7753e52d1e103 (diff)
downloadafl++-dcd2f9ac77144a7a7d7f10efd7a5b47c474a4022.tar.gz
Merge pull request #2143 from r-barnes/patch-1
Make fallthroughs explicit in afl-fuzz-extras.c
Diffstat (limited to 'src/afl-fuzz-extras.c')
-rw-r--r--src/afl-fuzz-extras.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afl-fuzz-extras.c b/src/afl-fuzz-extras.c
index 55b6be04..da996602 100644
--- a/src/afl-fuzz-extras.c
+++ b/src/afl-fuzz-extras.c
@@ -455,13 +455,13 @@ void deunicode_extras(afl_state_t *afl) {
 
         case 2:
           if (!afl->extras[i].data[j]) { ++z3; }
-          // fall through
+          __attribute__((fallthrough));
         case 0:
           if (!afl->extras[i].data[j]) { ++z1; }
           break;
         case 3:
           if (!afl->extras[i].data[j]) { ++z4; }
-          // fall through
+          __attribute__((fallthrough));
         case 1:
           if (!afl->extras[i].data[j]) { ++z2; }
           break;