merge fuzz corpus; copy gen-dict.py; cleanup makefile

This commit is contained in:
mhoffm
2021-07-01 23:30:14 +02:00
parent 9c97f11b4c
commit d9c903ff41
790 changed files with 123 additions and 6610 deletions
+4 -5
View File
@@ -1,18 +1,17 @@
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/
UBSAN="print_stacktrace=1:halt_on_error=1:symbolize=1" ASAN_OPTIONS="quarantine_size_mb=10:detect_leaks=1:symbolize=1" ./fuzzer -workers=${WORKERS} -dict=hcl.dict corpus/
.PHONY: clean
clean:
rm fuzzer parser.o scanner.o libtree-sitter.a hcl.dict *.log
fuzzer: parser.o scanner.o libtree-sitter.a hcl.dict
clang++ -o fuzzer ${FUZZFLAGS} -std=c++11 fuzzer.cc -Itree-sitter/lib scanner.o parser.o libtree-sitter.a
fuzzer: parser.o scanner.o libtree-sitter.a
clang++ -o fuzzer ${FUZZFLAGS} -std=c++11 fuzzer.cc -Itree-sitter/lib/include 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
@@ -21,7 +20,7 @@ parser.o: ../src/parser.c
clang -o parser.o ${FUZZFLAGS} -std=c99 -I../src -c ../src/parser.c
hcl.dict: ../grammar.js
python ./tree-sitter/test/fuzz/gen-dict.py ../src/grammar.json > hcl.dict
python gen-dict.py ../src/grammar.json > hcl.dict
libtree-sitter.a:
make -C tree-sitter
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,51 +0,0 @@
// 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
}
}
@@ -1,37 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,29 +0,0 @@
// comment
# comment
/*
comment
*/
resource_1 "strlit1" "strlit2" {
a(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((("baz" }
)
cond1 = (1 == 2) ? 1 : "foobar"
bin1 ! = ((1+2)%3)*4
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
esc2 = "$${} %%{}"
bin1 ! = ((1+2)%3)*4
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
esc2 = "$${} %%{}"
tpl0 = "prefix-${var.bar}"
tpl2 = "prefix-${func("bar")}"
tpl3 = "prefix-${func("nested-${var.bar}")}"
tpl4 = <<EOF
2
attr2 = 2.112
attr3 = 2.112e-12
attr4 = 2.112%«12
attr5 = 2.112E+12
attr6 = 2.112E-12
attr7 = 0x21FF
}
}
@@ -1,35 +0,0 @@
// comment
# comment
/*
comment
*/
resource_1 "strlit1" "strlit2" {
attr1 = "val1"
tupl1 = [ 1, 2, 3.4, "foo" ]
tupl2 = [] var.map : k => v }
for4 = [ for v in var.l:st2 = [ for k, v in var.map : "${k}-${v}" ]
for3 = { for k, v in var.map : k => v }
for4 = [ for v in var.l:st : v ]
for5 = { for + inbin1 = ((1+2)%3)*4
esc1 = "\ tUF" \\F11FF22 \uFFFF \n"
esc2) = "$${~ %%{}"
tpl1  = "prefix-${var.bar}"
tpl2 = "prefix-${fun-c("bar")}"
tpl3 = "prefix-${func("n-sted-${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
attr5 = 2.112E+12
attr6 = 2.112E-12
attr7 = 0x21FF
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,41 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,45 +0,0 @@
// 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
}
}
@@ -1,43 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,26 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,21 +0,0 @@
// 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
}
}
Binary file not shown.
@@ -1,43 +0,0 @@
// 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${} %%{}"}
Binary file not shown.
Binary file not shown.
@@ -1,49 +0,0 @@
// comment
# comment
/*
comment
*/
reso// 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.bÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿar[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 = { for v in var.list : v => v }
for6 = [ f" ]
or v in vurce_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 ar.list var
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
// 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
}
}
@@ -1,38 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
@@ -1,24 +0,0 @@
// comment
# comment
/*
[]
obtuple.*.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 nullfor v in var.list : v ]
for5 = { for v in var.list : v => v }
for3 = [ for v (n 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
esc2 =`"\" \t \UFF11FF22 \uFFFF \n"
12
attr7 = 0x21FF
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,36 +0,0 @@
// 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
}
}
@@ -1,45 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,49 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
@@ -1,40 +0,0 @@
// 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]
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 == 2) ? 1 : "foobar"
bin1 = ((1+2)%3)*4
esc1 = "\" \t \UFF12FF22 \uFFFF \n"
esc2 = "$${} %%{}"
tpl1 = "prefix-${var.bar}"
tplprefix-${func("bar")}"
upl+e.*. tpl3 = "prefix-${func("nested-${var.bar}")}"
tpl4 = <<EOF
prefix
${func...oo${ var.bar }")}
suffix
EOF
nested_resource_1 {
at// comment
# comment
tr/1*
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,45 +0,0 @@
// 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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,44 +0,0 @@
// 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
}
}
@@ -1,44 +0,0 @@
// 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
}
}
Binary file not shown.
@@ -1,46 +0,0 @@
// comme[]
obj1 = { foo*= "baz" }
null1 = null
bool1 = true
bool2 = f= 2) ? 1 : "foobar"
bin1 = ((1+2)%3)*4
esc1 = "\" \t \UFF11FF22 \uFFFF \n"
esc2 = "$${} %%{}"
tpl1 = "prefix-${var.bar}"
tpl2 = "prefix-${func("bar")}"
tpl3 = "prefint
# comment
/*
comment
*/
resource_1 "strlit1" "strlit2" {
attr1 = "val1"
tupl1 = [ 1, 2, 3.4, "foo" ]
tupl2 = []
obj1 = { foo*= "baz" }
null1 = null
bool1 = true
bool2 = f= 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}")}"
tpl5 = <<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
}
}
@@ -1,43 +0,0 @@
// 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 : "foobac2 = "$${} %%{}"
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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More