add compile workflow
add fuzzing instrumentation
This commit is contained in:
28
.github/workflows/build.yaml
vendored
Normal file
28
.github/workflows/build.yaml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
compile:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
compiler: [gcc, clang++]
|
||||
|
||||
name: compile
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- if: matrix.os == 'windows-latest' && matrix.compiler == 'clang++'
|
||||
uses: KyleMayes/install-llvm-action@v1
|
||||
with:
|
||||
version: "11.0"
|
||||
|
||||
- if: matrix.os == 'windows-latest' && matrix.compiler == 'gcc'
|
||||
uses: egor-tensin/setup-mingw@v2
|
||||
|
||||
- name: build
|
||||
run: ${{ matrix.compiler }} -o scanner.o -I./src -c src/scanner.cc
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -7,3 +7,8 @@ log.html
|
||||
tree-sitter-hcl.wasm
|
||||
.env
|
||||
.DS_Store
|
||||
|
||||
fuzz/fuzzer
|
||||
fuzz/*.o
|
||||
fuzz/*.a
|
||||
fuzz/fuzz-*.log
|
||||
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "fuzz/tree-sitter"]
|
||||
path = fuzz/tree-sitter
|
||||
url = https://github.com/tree-sitter/tree-sitter.git
|
||||
@@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## 0.3.2 - not yet released
|
||||
|
||||
fix:
|
||||
* add a build step to CI to make sure the scanner is compilable
|
||||
|
||||
## 0.3.1 - 2021-06-30
|
||||
|
||||
fix:
|
||||
|
||||
@@ -28,7 +28,7 @@ Total parses: 1892; successful parses: 1892; failed parses: 0; success percentag
|
||||
|
||||
## Fuzzing
|
||||
|
||||
The directory `fuzz/crashers` contains a set of crashes that were found with fuzzing. To fuzz the parser i used the instrumentation of [tree-sitter](https://github.com/tree-sitter/tree-sitter/tree/master/test/fuzz)
|
||||
The directory `fuzz/crashers` contains a set of crashes that were found with fuzzing.
|
||||
|
||||
## Todo
|
||||
|
||||
@@ -39,8 +39,8 @@ The directory `fuzz/crashers` contains a set of crashes that were found with fuz
|
||||
* [x] add heredoc templates
|
||||
* [ ] fuzzing
|
||||
* [x] start with fuzzing the parser
|
||||
* [ ] upload fuzzing instrumentation
|
||||
* [x] upload fuzzing instrumentation
|
||||
* [ ] document fuzzing process
|
||||
* [ ] quality
|
||||
* [ ] add CI job that ensures the parser builds on different plattforms
|
||||
* [x] add CI job that ensures the parser builds on different plattforms
|
||||
* [ ] add CI job that parses crashers that were found during fuzzing
|
||||
|
||||
@@ -33,6 +33,11 @@ resource_1 "strlit1" "strlit2" {
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
func_of_object = func({
|
||||
"foo": 2,
|
||||
bar: 1,
|
||||
fizz: buzz,
|
||||
})
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
|
||||
30
fuzz/Makefile
Normal file
30
fuzz/Makefile
Normal file
@@ -0,0 +1,30 @@
|
||||
FUZZFLAGS=-fsanitize=fuzzer,address,undefined
|
||||
|
||||
JOBS=4
|
||||
WORKERS=4
|
||||
|
||||
.PHONY: fuzz
|
||||
fuzz: fuzzer hcl.dict
|
||||
UBSAN="print_stacktrace=1:halt_on_error=1:symbolize=1" ASAN_OPTIONS="quarantine_size_mb=10:detect_leaks=1:symbolize=1" ./fuzzer -jobs=${JOBS} -workers=${WORKERS} -dict=hcl.dict corpus/
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf tree-sitter
|
||||
rm fuzzer parser.o scanner.o libtree-sitter.a
|
||||
|
||||
fuzzer: parser.o scanner.o libtree-sitter.a
|
||||
clang++ -o fuzzer ${FUZZFLAGS} -std=c++11 tree-sitter/test/fuzz/fuzzer.cc -Itree-sitter/lib scanner.o parser.o libtree-sitter.a
|
||||
|
||||
scanner.o: ../src/scanner.cc
|
||||
clang++ -o scanner.o ${FUZZFLAGS} -std=c++11 -I../src -c ../src/scanner.cc
|
||||
|
||||
parser.o: ../src/parser.c
|
||||
clang -o parser.o ${FUZZFLAGS} -std=c99 -I../src -c ../src/parser.c
|
||||
|
||||
hcl.dict:
|
||||
tree-sitter/scripts
|
||||
|
||||
libtree-sitter.a:
|
||||
make -C tree-sitter
|
||||
cp tree-sitter/libtree-sitter.a .
|
||||
|
||||
BIN
fuzz/corpus/004aa7303dfc68e77c7cf1ac6116388d01b15b19
Normal file
BIN
fuzz/corpus/004aa7303dfc68e77c7cf1ac6116388d01b15b19
Normal file
Binary file not shown.
BIN
fuzz/corpus/008d320cb51a7e805c37e8bbb18918d2263aac64
Normal file
BIN
fuzz/corpus/008d320cb51a7e805c37e8bbb18918d2263aac64
Normal file
Binary file not shown.
BIN
fuzz/corpus/00eb935cfd65c5582911f8934fbe41bf20056df6
Normal file
BIN
fuzz/corpus/00eb935cfd65c5582911f8934fbe41bf20056df6
Normal file
Binary file not shown.
51
fuzz/corpus/0101f42a5434405833b3061141773d84a82d687c
Normal file
51
fuzz/corpus/0101f42a5434405833b3061141773d84a82d687c
Normal file
@@ -0,0 +1,51 @@
|
||||
// comme
|
||||
t#n comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒ)}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestad_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
ame
|
||||
t#n comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒ)}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestad_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
ame
|
||||
t#n comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒttr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
37
fuzz/corpus/010a19bc802b34bff21903c7c9f95fbbfa164f04
Normal file
37
fuzz/corpus/010a19bc802b34bff21903c7c9f95fbbfa164f04
Normal file
@@ -0,0 +1,37 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 =")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
aŒtr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
att ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFF \n"
|
||||
esá2 = "$${} %%{!}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix commond2 -${func("bar"):}"
|
||||
tpl3 == 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF225\uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/025cf96fbae04699c25023510677c944ccfc8188
Normal file
BIN
fuzz/corpus/025cf96fbae04699c25023510677c944ccfc8188
Normal file
Binary file not shown.
BIN
fuzz/corpus/028a09b21a89efa77af5cdbc1d8fa61389a237b0
Normal file
BIN
fuzz/corpus/028a09b21a89efa77af5cdbc1d8fa61389a237b0
Normal file
Binary file not shown.
BIN
fuzz/corpus/029227ccd9aa88824b3c40853db2e6d3d0d38f69
Normal file
BIN
fuzz/corpus/029227ccd9aa88824b3c40853db2e6d3d0d38f69
Normal file
Binary file not shown.
BIN
fuzz/corpus/031f68204adbd37cb026b11c2c50663ed8a8c7b9
Normal file
BIN
fuzz/corpus/031f68204adbd37cb026b11c2c50663ed8a8c7b9
Normal file
Binary file not shown.
BIN
fuzz/corpus/0330f61eed1e5ee3f960ef6d02ae80132b5ae1d6
Normal file
BIN
fuzz/corpus/0330f61eed1e5ee3f960ef6d02ae80132b5ae1d6
Normal file
Binary file not shown.
BIN
fuzz/corpus/03429738ab821bb85240081d24e8c69e6f894fcd
Normal file
BIN
fuzz/corpus/03429738ab821bb85240081d24e8c69e6f894fcd
Normal file
Binary file not shown.
46
fuzz/corpus/041fe0b7482d726b0c542fb4e94c71b4fc31ed9c
Normal file
46
fuzz/corpus/041fe0b7482d726b0c542fb4e94c71b4fc31ed9c
Normal file
@@ -0,0 +1,46 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 = false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { for v in var.list : v => v }
|
||||
for6 = [ for v in var.list : v if v < 3 ]
|
||||
func1 = is_number("123")
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
= <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }"!}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/044ab4d72b5a71822d96001cf85c6caecc696386
Normal file
BIN
fuzz/corpus/044ab4d72b5a71822d96001cf85c6caecc696386
Normal file
Binary file not shown.
BIN
fuzz/corpus/04a07370ae2f20841500904d38d9a15066053c87
Normal file
BIN
fuzz/corpus/04a07370ae2f20841500904d38d9a15066053c87
Normal file
Binary file not shown.
BIN
fuzz/corpus/04f740e9198db6f034406f506809e93792ec0cd1
Normal file
BIN
fuzz/corpus/04f740e9198db6f034406f506809e93792ec0cd1
Normal file
Binary file not shown.
41
fuzz/corpus/0521442f276144096a66df5966ecff260a70ed83
Normal file
41
fuzz/corpus/0521442f276144096a66df5966ecff260a70ed83
Normal file
@@ -0,0 +1,41 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 = false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", " ",a"b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { for v in var.list : v => v }
|
||||
for6 = [ for v in var.list : v if v < 3 ]
|
||||
func1 = is_number("123")
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
for v in var.list : v => v }
|
||||
for6 = [ for v in var.list : v if v < 3 ]
|
||||
func1 = is_number("123")
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tp.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/056e2dac39d802d45a716969cc4281dde227eed4
Normal file
BIN
fuzz/corpus/056e2dac39d802d45a716969cc4281dde227eed4
Normal file
Binary file not shown.
19
fuzz/corpus/058a8082488d1ff5d929b3158950ad2a0d6fc2dc
Normal file
19
fuzz/corpus/058a8082488d1ff5d929b3158950ad2a0d6fc2dc
Normal file
@@ -0,0 +1,19 @@
|
||||
// commen’õÜßœ<C39F>’’ent
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz"# }
|
||||
)
|
||||
cond2( =1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uF2e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
45
fuzz/corpus/065858dd20251e2ca9baae9e08b29a6774fa77de
Normal file
45
fuzz/corpus/065858dd20251e2ca9baae9e08b29a6774fa77de
Normal file
@@ -0,0 +1,45 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
reuo
|
||||
rsce_1 "sr"1it tl"stpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
su = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 ="$ ${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar"):}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112)m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
su = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 ="$ ${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar"):}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
pr
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.11[E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
43
fuzz/corpus/066683463e2ad07edcab940aabeb3e8664a4bfec
Normal file
43
fuzz/corpus/066683463e2ad07edcab940aabeb3e8664a4bfec
Normal file
@@ -0,0 +1,43 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { for v in var.list : v >} =
|
||||
v for6 = [ for v in var.list : v if v < 3 ]
|
||||
func1 = is_number("123")
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc4 = "$${ "prefix-${func("nested-${var.bar}")}"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/06e57563d2df869a4c4b33e9b23609dc6133908d
Normal file
BIN
fuzz/corpus/06e57563d2df869a4c4b33e9b23609dc6133908d
Normal file
Binary file not shown.
BIN
fuzz/corpus/075f731ed33fa2682901a206d5e498a844883032
Normal file
BIN
fuzz/corpus/075f731ed33fa2682901a206d5e498a844883032
Normal file
Binary file not shown.
BIN
fuzz/corpus/07d110cadc7d5a7af7fb62f16f55477b0a34507c
Normal file
BIN
fuzz/corpus/07d110cadc7d5a7af7fb62f16f55477b0a34507c
Normal file
Binary file not shown.
15
fuzz/corpus/0873731f1bc2247ef5002c85fc7984ca18fbd393
Normal file
15
fuzz/corpus/0873731f1bc2247ef5002c85fc7984ca18fbd393
Normal file
@@ -0,0 +1,15 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" ]
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tupl$${ "prefix-${func("nested-${var.bar}")}"{x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/088b8ca6ca1780a2ae6853b1370c5d76058528b2
Normal file
BIN
fuzz/corpus/088b8ca6ca1780a2ae6853b1370c5d76058528b2
Normal file
Binary file not shown.
BIN
fuzz/corpus/08ae6f70fc4b51aa20cb5bf187dd3d52726cdc64
Normal file
BIN
fuzz/corpus/08ae6f70fc4b51aa20cb5bf187dd3d52726cdc64
Normal file
Binary file not shown.
BIN
fuzz/corpus/0905252f89d01b9086098258a829159f3820ffd8
Normal file
BIN
fuzz/corpus/0905252f89d01b9086098258a829159f3820ffd8
Normal file
Binary file not shown.
26
fuzz/corpus/0950fef5080a1803b71ab656d5704b7bfe7e0819
Normal file
26
fuzz/corpus/0950fef5080a1803b71ab656d5704b7bfe7e0819
Normal file
@@ -0,0 +1,26 @@
|
||||
// comment
|
||||
#? comœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœœment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, "foo" ]
|
||||
tupl2!== []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
\" tUF\F\1 1FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${fun+12
|
||||
2
|
||||
attr2 = 2.112
|
||||
àßßßž‹‹†3 = 2.112e-12
|
||||
attr4 = 2.112e+06
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 4.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/096ff2024066b333eda7306750b34df42f3ba8ef
Normal file
BIN
fuzz/corpus/096ff2024066b333eda7306750b34df42f3ba8ef
Normal file
Binary file not shown.
BIN
fuzz/corpus/0ad7ee30919e20261067af2d450812b81033f8a1
Normal file
BIN
fuzz/corpus/0ad7ee30919e20261067af2d450812b81033f8a1
Normal file
Binary file not shown.
BIN
fuzz/corpus/0af86a8c84de010e8c12f4f8b33f20f3fb1199ad
Normal file
BIN
fuzz/corpus/0af86a8c84de010e8c12f4f8b33f20f3fb1199ad
Normal file
Binary file not shown.
21
fuzz/corpus/0bf332b32a80e7a5f74e637f71fdfeebc41844d9
Normal file
21
fuzz/corpus/0bf332b32a80e7a5f74e637f71fdfeebc41844d9
Normal file
@@ -0,0 +1,21 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
Šresource_1 "strlit1" "stpl4 = "prefix-${func("nested-${var.bal4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr0 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 1.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/0bfb2cb5ef9c0996631e31e11acf1bb4be2d8a3d
Normal file
BIN
fuzz/corpus/0bfb2cb5ef9c0996631e31e11acf1bb4be2d8a3d
Normal file
Binary file not shown.
43
fuzz/corpus/0c94c6d7a2c9506a677ef07334231a64d9227617
Normal file
43
fuzz/corpus/0c94c6d7a2c9506a677ef07334231a64d9227617
Normal file
@@ -0,0 +1,43 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
4upl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 = false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k,0v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { for v in var.list : v => v }
|
||||
for6 = [ for v in var.list : v if v < 3 ]
|
||||
func = is_numbe,("123")
|
||||
cond1 = (1 z= 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF12FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl2 = "prefix-${var.bar}"
|
||||
tplprefix-${func("bar")}"
|
||||
uple.*. tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func...oo${ var.bar}")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x${} %%{}"}
|
||||
35
fuzz/corpus/0ceaa3b0aa71f6d484eb3d18253ddac96a4e0576
Normal file
35
fuzz/corpus/0ceaa3b0aa71f6d484eb3d18253ddac96a4e0576
Normal file
@@ -0,0 +1,35 @@
|
||||
// comment
|
||||
# comlse
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { f;or v in var.list : v >} =
|
||||
v for6 = [ for v iËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { f.o = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
(splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => iEOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/0d646bbe1205edb8910f17cd57aec7be960db038
Normal file
BIN
fuzz/corpus/0d646bbe1205edb8910f17cd57aec7be960db038
Normal file
Binary file not shown.
BIN
fuzz/corpus/0e9850767144d7e6edb96aaece8004a47bce672f
Normal file
BIN
fuzz/corpus/0e9850767144d7e6edb96aaece8004a47bce672f
Normal file
Binary file not shown.
BIN
fuzz/corpus/0eb5947ab39d0af4cde20cd09ba09d1b9d75b226
Normal file
BIN
fuzz/corpus/0eb5947ab39d0af4cde20cd09ba09d1b9d75b226
Normal file
Binary file not shown.
BIN
fuzz/corpus/0ebe0f8f99b2a628c9c9af54b12ef18fb85822bf
Normal file
BIN
fuzz/corpus/0ebe0f8f99b2a628c9c9af54b12ef18fb85822bf
Normal file
Binary file not shown.
BIN
fuzz/corpus/0ed9f07a695563f68d62ddabe88a526dc4ca6a38
Normal file
BIN
fuzz/corpus/0ed9f07a695563f68d62ddabe88a526dc4ca6a38
Normal file
Binary file not shown.
BIN
fuzz/corpus/0f3c7d72d01440ba2526f661356bfe48bf3e5dcc
Normal file
BIN
fuzz/corpus/0f3c7d72d01440ba2526f661356bfe48bf3e5dcc
Normal file
Binary file not shown.
BIN
fuzz/corpus/0f6a17c7955a7d9b6f306b5b12e6c13d08ea76a4
Normal file
BIN
fuzz/corpus/0f6a17c7955a7d9b6f306b5b12e6c13d08ea76a4
Normal file
Binary file not shown.
BIN
fuzz/corpus/0fa05a77f822a5502d48ac9a97c8adff1415c014
Normal file
BIN
fuzz/corpus/0fa05a77f822a5502d48ac9a97c8adff1415c014
Normal file
Binary file not shown.
32
fuzz/corpus/10a583c36374692d83a7a760e0acd4ca687a8b2c
Normal file
32
fuzz/corpus/10a583c36374692d83a7a760e0acd4ca687a8b2c
Normal file
@@ -0,0 +1,32 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
sp = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
38
fuzz/corpus/11169b8b451041382861c0a8eb53b2c95ce74a1b
Normal file
38
fuzz/corpus/11169b8b451041382861c0a8eb53b2c95ce74a1b
Normal file
@@ -0,0 +1,38 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resourc e_1 +"strlit1" "strlit2" {
|
||||
{
|
||||
attr1 = 2
|
||||
attr2sc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
e_1 +"strlit1" "strlit2" {
|
||||
{
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bal4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_2ce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/113539572d44753085f8a731eaf06e0aee080048
Normal file
BIN
fuzz/corpus/113539572d44753085f8a731eaf06e0aee080048
Normal file
Binary file not shown.
BIN
fuzz/corpus/11824928717fc24e2c44edd6752d638fbd2964d7
Normal file
BIN
fuzz/corpus/11824928717fc24e2c44edd6752d638fbd2964d7
Normal file
Binary file not shown.
32
fuzz/corpus/121ac44e2093c96fed1c8b8ba4316239a568b0da
Normal file
32
fuzz/corpus/121ac44e2093c96fed1c8b8ba4316239a568b0da
Normal file
@@ -0,0 +1,32 @@
|
||||
// comme
|
||||
t#n comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒ)}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
ame
|
||||
t#n comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
.. }
|
||||
for2 = [ ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒttr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
13
fuzz/corpus/1265b1f61dd107d3bfc0b3ea241a107925d331c9
Normal file
13
fuzz/corpus/1265b1f61dd107d3bfc0b3ea241a107925d331c9
Normal file
@@ -0,0 +1,13 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoupl2 = [ ËÓßÍ, 2.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = nu// comm[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
fllor2
|
||||
BIN
fuzz/corpus/127ec87368e3bc50aa59aac43780c7472dbc2582
Normal file
BIN
fuzz/corpus/127ec87368e3bc50aa59aac43780c7472dbc2582
Normal file
Binary file not shown.
BIN
fuzz/corpus/13ed4fa39ddf3d93e4a7723bd8a20bc235246937
Normal file
BIN
fuzz/corpus/13ed4fa39ddf3d93e4a7723bd8a20bc235246937
Normal file
Binary file not shown.
BIN
fuzz/corpus/13fd8244f2e1df3650bdda631af31ed7077b02e2
Normal file
BIN
fuzz/corpus/13fd8244f2e1df3650bdda631af31ed7077b02e2
Normal file
Binary file not shown.
BIN
fuzz/corpus/151c1d6ebfe1d4f9eb54929b45d084ed0ef20686
Normal file
BIN
fuzz/corpus/151c1d6ebfe1d4f9eb54929b45d084ed0ef20686
Normal file
Binary file not shown.
36
fuzz/corpus/1557c6061e7c6f58fc90ce1f089a08003165a8c9
Normal file
36
fuzz/corpus/1557c6061e7c6f58fc90ce1f089a08003165a8c9
Normal file
@@ -0,0 +1,36 @@
|
||||
// comment
|
||||
# comment
|
||||
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ/*
|
||||
comment
|
||||
*/
|
||||
|
||||
re.soupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
attr5 = 2.112 splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { forsplat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => iEOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
45
fuzz/corpus/15ff3258980420ac0381a647b1f5f26da3d6fbb6
Normal file
45
fuzz/corpus/15ff3258980420ac0381a647b1f5f26da3d6fbb6
Normal file
@@ -0,0 +1,45 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
re.soupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k => v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 = { for v in var.list : v >} =
|
||||
v for6 = [ for v iËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => iEOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/16147a98587750bf0a34c7aed72852bc3c529fca
Normal file
BIN
fuzz/corpus/16147a98587750bf0a34c7aed72852bc3c529fca
Normal file
Binary file not shown.
BIN
fuzz/corpus/1673d9a9a92562f8a70cf56c41bf0c8ca5d86ed2
Normal file
BIN
fuzz/corpus/1673d9a9a92562f8a70cf56c41bf0c8ca5d86ed2
Normal file
Binary file not shown.
BIN
fuzz/corpus/169eb25e0c27a8c12876a685d2f01a8c6b78e022
Normal file
BIN
fuzz/corpus/169eb25e0c27a8c12876a685d2f01a8c6b78e022
Normal file
Binary file not shown.
BIN
fuzz/corpus/16cd1b9d8222bf769d41f0456211fc09027a555f
Normal file
BIN
fuzz/corpus/16cd1b9d8222bf769d41f0456211fc09027a555f
Normal file
Binary file not shown.
BIN
fuzz/corpus/17008a33ae861ebeae932a4e2e9985d0c355e06a
Normal file
BIN
fuzz/corpus/17008a33ae861ebeae932a4e2e9985d0c355e06a
Normal file
Binary file not shown.
23
fuzz/corpus/176001901e039e04bc4f7de62f78291401f53bbe
Normal file
23
fuzz/corpus/176001901e039e04bc4f7de62f78291401f53bbe
Normal file
@@ -0,0 +1,23 @@
|
||||
// comment
|
||||
#? comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, Þ™<C39E>Œ" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 ! = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-$ attr5 = 2.112E+12
|
||||
attr6 = 4.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/17877e3f6de926aa01c7cd100482aac53ce6c920
Normal file
BIN
fuzz/corpus/17877e3f6de926aa01c7cd100482aac53ce6c920
Normal file
Binary file not shown.
49
fuzz/corpus/1836c180a074dfae3e8aed5080e3b301548f0a42
Normal file
49
fuzz/corpus/1836c180a074dfae3e8aed5080e3b301548f0a42
Normal file
@@ -0,0 +1,49 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 -${func("bar"):}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
39
fuzz/corpus/18569a18416f356526fb8327b333668adb112207
Normal file
39
fuzz/corpus/18569a18416f356526fb8327b333668adb112207
Normal file
@@ -0,0 +1,39 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
rEsource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null1 = null
|
||||
bool1 = true
|
||||
bool2 = false
|
||||
splat1 = tuple.*.foo.bar[0]
|
||||
splat2 = tuple[*].foo.bar[0]
|
||||
for1 = { for i, v in ["a", "a", "b"] : v => i... }
|
||||
for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k =>// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoual1"
|
||||
tupl1 = [ 1// comment
|
||||
#? , ÎÏ 3.4, v }
|
||||
for4 = [ for v in var.list : v ]
|
||||
for5 "foo = { for2 = [ for k, v in var.map : "${k}-${v}" ]
|
||||
for3 = { for k, v in var.map : k =>// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoual1"
|
||||
tupl1 = [ 1 v in var.list : v => v }
|
||||
for6 = [ f" ]
|
||||
or v in var.list : v i tfu
|
||||
BIN
fuzz/corpus/186ea0707eeed4bd7beb05b878b5d278aff1f33b
Normal file
BIN
fuzz/corpus/186ea0707eeed4bd7beb05b878b5d278aff1f33b
Normal file
Binary file not shown.
BIN
fuzz/corpus/18c5970a4509ba77ad330cb0907f566e1bff1e5d
Normal file
BIN
fuzz/corpus/18c5970a4509ba77ad330cb0907f566e1bff1e5d
Normal file
Binary file not shown.
BIN
fuzz/corpus/196e06cd902767b9e4697d25335331cb71675ac4
Normal file
BIN
fuzz/corpus/196e06cd902767b9e4697d25335331cb71675ac4
Normal file
Binary file not shown.
BIN
fuzz/corpus/197ab1c8d86b9c7bd0c721bb1fad0f99911778f3
Normal file
BIN
fuzz/corpus/197ab1c8d86b9c7bd0c721bb1fad0f99911778f3
Normal file
Binary file not shown.
45
fuzz/corpus/19b8782a0ce8c87c9d38c44ce15d3e5701e6e1ff
Normal file
45
fuzz/corpus/19b8782a0ce8c87c9d38c44ce15d3e5701e6e1ff
Normal file
@@ -0,0 +1,45 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resourc e_1 +"strlit1" "strlit2" {
|
||||
{
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
e_1 +"strlit1" "strlit2" {
|
||||
{
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bal4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_2ce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/1a0724ebcc27514287c80f4753fe0e57acb3c6ed
Normal file
BIN
fuzz/corpus/1a0724ebcc27514287c80f4753fe0e57acb3c6ed
Normal file
Binary file not shown.
BIN
fuzz/corpus/1a4e330d322080619b7f06635d0a52e501370216
Normal file
BIN
fuzz/corpus/1a4e330d322080619b7f06635d0a52e501370216
Normal file
Binary file not shown.
BIN
fuzz/corpus/1af7f08f985d41de3babf6abed23218bd2be011f
Normal file
BIN
fuzz/corpus/1af7f08f985d41de3babf6abed23218bd2be011f
Normal file
Binary file not shown.
44
fuzz/corpus/1b0cf4b1a142021f01ec181bd9ffebdb68e5d3ae
Normal file
44
fuzz/corpus/1b0cf4b1a142021f01ec181bd9ffebdb68e5d3ae
Normal file
@@ -0,0 +1,44 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esá2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix commond2 -${func("bar"):}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF225\uFFFF \n"
|
||||
esc2 = " %{%${$}}"
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF225\uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
44
fuzz/corpus/1b6b8056d19db98f627cdfd45524d8884cc4a8d2
Normal file
44
fuzz/corpus/1b6b8056d19db98f627cdfd45524d8884cc4a8d2
Normal file
@@ -0,0 +1,44 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 -${func("bar"):}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")m"
|
||||
tpl4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/1be2a22b3b78ae2ed5f36c8b6347b18f41aaccb0
Normal file
BIN
fuzz/corpus/1be2a22b3b78ae2ed5f36c8b6347b18f41aaccb0
Normal file
Binary file not shown.
BIN
fuzz/corpus/1c0c02e6aee5314a0132d84d12a47d7b2da13769
Normal file
BIN
fuzz/corpus/1c0c02e6aee5314a0132d84d12a47d7b2da13769
Normal file
Binary file not shown.
BIN
fuzz/corpus/1c12a4a7279ce052b3e35fcc977ed7dc7e390325
Normal file
BIN
fuzz/corpus/1c12a4a7279ce052b3e35fcc977ed7dc7e390325
Normal file
Binary file not shown.
BIN
fuzz/corpus/1cd82aa5b719b99bdc54c3d683322026db6a85a6
Normal file
BIN
fuzz/corpus/1cd82aa5b719b99bdc54c3d683322026db6a85a6
Normal file
Binary file not shown.
BIN
fuzz/corpus/1d72b107950b8d20cd8e0c898dd0951153c2578b
Normal file
BIN
fuzz/corpus/1d72b107950b8d20cd8e0c898dd0951153c2578b
Normal file
Binary file not shown.
BIN
fuzz/corpus/1da4ccd495b84f5d762fb3791a6b93488bd6e679
Normal file
BIN
fuzz/corpus/1da4ccd495b84f5d762fb3791a6b93488bd6e679
Normal file
Binary file not shown.
BIN
fuzz/corpus/1e40365794969544a3e610af6cfb0fdb3e2b36e3
Normal file
BIN
fuzz/corpus/1e40365794969544a3e610af6cfb0fdb3e2b36e3
Normal file
Binary file not shown.
35
fuzz/corpus/1e6080efab8894cab1cfaabb6c7e72f7c9acf6a2
Normal file
35
fuzz/corpus/1e6080efab8894cab1cfaabb6c7e72f7c9acf6a2
Normal file
@@ -0,0 +1,35 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tpl =4 <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/1e7201f8847bd9556bede69fac35d61abc9a7f23
Normal file
BIN
fuzz/corpus/1e7201f8847bd9556bede69fac35d61abc9a7f23
Normal file
Binary file not shown.
BIN
fuzz/corpus/1eb56d3c1a4eb269f73c0b90298c5b2b5e30b6e9
Normal file
BIN
fuzz/corpus/1eb56d3c1a4eb269f73c0b90298c5b2b5e30b6e9
Normal file
Binary file not shown.
BIN
fuzz/corpus/1eb7b42eba62f605c63e27b5cdf9fdfa9039a887
Normal file
BIN
fuzz/corpus/1eb7b42eba62f605c63e27b5cdf9fdfa9039a887
Normal file
Binary file not shown.
BIN
fuzz/corpus/1eca69f1063715ffa514efe7fbaa2e45c8b4abe2
Normal file
BIN
fuzz/corpus/1eca69f1063715ffa514efe7fbaa2e45c8b4abe2
Normal file
Binary file not shown.
BIN
fuzz/corpus/1f46949bded87b9eff05fbbcdf73afb1bdf1f685
Normal file
BIN
fuzz/corpus/1f46949bded87b9eff05fbbcdf73afb1bdf1f685
Normal file
Binary file not shown.
BIN
fuzz/corpus/1f592c7e4ac0f7db6f81723baccf1809ab86f78a
Normal file
BIN
fuzz/corpus/1f592c7e4ac0f7db6f81723baccf1809ab86f78a
Normal file
Binary file not shown.
31
fuzz/corpus/1f9242bf0ce364b2c48b6c4d53ce36f73f73141f
Normal file
31
fuzz/corpus/1f9242bf0ce364b2c48b6c4d53ce36f73f73141f
Normal file
@@ -0,0 +1,31 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resoupl1 = [ ËÓßÍ, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
null± = null
|
||||
bool1 = true
|
||||
bool2 -= false
|
||||
sp = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bar}")}"
|
||||
tpl4 = <<EOF
|
||||
prefixöä ${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nested_resource_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
49
fuzz/corpus/1fa636dd5976fb4c9776c565cbeb93795938b313
Normal file
49
fuzz/corpus/1fa636dd5976fb4c9776c565cbeb93795938b313
Normal file
@@ -0,0 +1,49 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA tupl2 = []
|
||||
obÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞÞj1 = { foo = "baz" }
|
||||
)
|
||||
cond2 = (1 %3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tprefix comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
r™Œ<EFBFBD>Šrce_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, ÎÏ 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
OF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+ attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 attr4 = 2.112e+12
|
||||
attrbin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
34
fuzz/corpus/1feba91f10229e9dafcfd64fdf7ee9a1c4d8a274
Normal file
34
fuzz/corpus/1feba91f10229e9dafcfd64fdf7ee9a1c4d8a274
Normal file
@@ -0,0 +1,34 @@
|
||||
// comment
|
||||
# comment
|
||||
/*
|
||||
comment
|
||||
*/
|
||||
|
||||
resource_1 "strlit1" "strlit2" {
|
||||
attr1 = "val1"
|
||||
tupl1 = [ 1, 2, 3.4, "foo" ]
|
||||
tupl2 = []
|
||||
obj1 = { foo = "baz" }
|
||||
)
|
||||
cond1 = (1 == 2) ? 1 : "foobar"
|
||||
bin1 = ((1+2)%3)*4
|
||||
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
|
||||
esc2 = "$${} %%{}"
|
||||
tpl1 = "prefix-${var.bar}"
|
||||
tpl2 = "prefix-${func("bar")}"
|
||||
tpl3 = "prefix-${func("nested-${var.bal4 = <<EOF
|
||||
prefix
|
||||
${func("foo${ var.bar }")}
|
||||
suffix
|
||||
EOF
|
||||
|
||||
nestesuedor_rce_1 {
|
||||
attr1 = 2
|
||||
attr2 = 2.112
|
||||
attr3 = 2.112e-12
|
||||
attr4 = 2.112e+12
|
||||
attr5 = 2.112E+12
|
||||
attr6 = 2.112E-12
|
||||
attr7 = 0x21FF
|
||||
}
|
||||
}
|
||||
BIN
fuzz/corpus/21470d9a81c1422babce8203eee6fb246d7f836c
Normal file
BIN
fuzz/corpus/21470d9a81c1422babce8203eee6fb246d7f836c
Normal file
Binary file not shown.
BIN
fuzz/corpus/215943e2aa8afbec583b04e60fabbea1276df0a6
Normal file
BIN
fuzz/corpus/215943e2aa8afbec583b04e60fabbea1276df0a6
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user