summaryrefslogtreecommitdiff
path: root/test/fuzzer/OnlySomeBytesTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fuzzer/OnlySomeBytesTest.cpp')
-rw-r--r--test/fuzzer/OnlySomeBytesTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/fuzzer/OnlySomeBytesTest.cpp b/test/fuzzer/OnlySomeBytesTest.cpp
index 3873b710b..076cda063 100644
--- a/test/fuzzer/OnlySomeBytesTest.cpp
+++ b/test/fuzzer/OnlySomeBytesTest.cpp
@@ -12,10 +12,13 @@
const size_t N = 2048;
typedef const uint8_t *IN;
+static volatile int one = 1;
+
extern "C" {
__attribute__((noinline)) void bad() {
fprintf(stderr, "BINGO\n");
- abort();
+ if (one)
+ abort();
}
__attribute__((noinline)) void f0(IN in) {