jq_fuzz_execute: limit oniguruma depth to 1024 (#3377)
Fixes #3375 - I'll also fix the oss-fuzz build for this in a PR Signed-off-by: Sudhakar Verma <sudhakar.verma@canonical.com>
This commit is contained in:
1 parent
c9c96b3cdd
commit
589a6947fa
1 file changed
+6
@@ -3,6 +3,12 @@
|
|||||||
|
|
||||||
#include "jq.h"
|
#include "jq.h"
|
||||||
#include "jv.h"
|
#include "jv.h"
|
||||||
|
#include "oniguruma.h"
|
||||||
|
|
||||||
|
extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) {
|
||||||
|
onig_set_parse_depth_limit(1024);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Fuzzer inspired by /src/jq_test.c
|
// Fuzzer inspired by /src/jq_test.c
|
||||||
// The goal is to have the fuzzer execute the functions:
|
// The goal is to have the fuzzer execute the functions:
|
||||||
|
|||||||
Reference in new issue
Block a user