summaryrefslogtreecommitdiff
path: root/contributed
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-07-13 14:54:01 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-07-13 14:54:01 +0200
commit7bbf4ae1401bc6e40f71a32d3f97952796d85690 (patch)
tree61c3edf1a277547ecd11903427a31cd09cf42b8a /contributed
parentf883fa5bd37b6420f5dc25027a68289c64028063 (diff)
parent62c49103a575c79d20d524b36d1b7c4db9515dbf (diff)
Merge branch 'release/debian/6.9.2-1'debian/6.9.2-1
Diffstat (limited to 'contributed')
-rw-r--r--contributed/libfuzzer-onig.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/contributed/libfuzzer-onig.cpp b/contributed/libfuzzer-onig.cpp
index dcd7c63..e137b73 100644
--- a/contributed/libfuzzer-onig.cpp
+++ b/contributed/libfuzzer-onig.cpp
@@ -3,14 +3,14 @@
Usage:
* compile oniguruma with something like
- ./configure CC=clang LD=clang CFLAGS="-fsanitize-coverage=edge -fsanitize=address" \
- LDFLAGS="-fsanitize-coverage=edge -fsanitize=address"
+ ./configure CC=clang LD=clang CFLAGS="-fsanitize-coverage=edge -fsanitize=address" \
+ LDFLAGS="-fsanitize-coverage=edge -fsanitize=address"
* Compile libfuzzer stub and link against static libonig.a and libFuzzer.a:
- clang++ libfuzzer-onig.cpp src/.libs/libonig.a libFuzzer.a -o libfuzzer-onig \
- -fsanitize-coverage=edge -fsanitize=address
+ clang++ libfuzzer-onig.cpp src/.libs/libonig.a libFuzzer.a -o libfuzzer-onig \
+ -fsanitize-coverage=edge -fsanitize=address
* Put sample patterns in directory "in/"
* Run
- ./libfuzzer-onig in
+ ./libfuzzer-onig in
Consult libfuzzer docs for further details and how to create libFuzzer.a:
http://llvm.org/docs/LibFuzzer.html
@@ -22,7 +22,7 @@ http://llvm.org/docs/LibFuzzer.html
extern "C" int LLVMFuzzerTestOneInput(const uint8_t * Data, size_t Size)
{
- regex_t *reg;
+ regex_t *reg;
OnigEncoding enc;
enc = ONIG_ENCODING_UTF8;
@@ -31,13 +31,13 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t * Data, size_t Size)
onig_initialize(&enc, 1);
#endif
- if (onig_new(&reg, Data, Data + Size, ONIG_OPTION_DEFAULT, enc,
+ if (onig_new(&reg, Data, Data + Size, ONIG_OPTION_DEFAULT, enc,
ONIG_SYNTAX_DEFAULT, 0) == 0)
- onig_free(reg);
+ onig_free(reg);
#ifdef FULL_TEST
onig_end();
#endif
- return 0;
+ return 0;
}