summaryrefslogtreecommitdiff
path: root/harnesses/libfuzzer-onig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'harnesses/libfuzzer-onig.cpp')
-rw-r--r--harnesses/libfuzzer-onig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/harnesses/libfuzzer-onig.cpp b/harnesses/libfuzzer-onig.cpp
index 526c826..52a6848 100644
--- a/harnesses/libfuzzer-onig.cpp
+++ b/harnesses/libfuzzer-onig.cpp
@@ -29,9 +29,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * Data, size_t Size)
#ifdef FULL_TEST
onig_initialize(&enc, 1);
+#endif
onig_set_retry_limit_in_match(120);
onig_set_parse_depth_limit(120);
-#endif
if (onig_new(&reg, Data, Data + Size, ONIG_OPTION_DEFAULT, enc,
ONIG_SYNTAX_DEFAULT, 0) == 0)