Skip to content

Commit 1371c9d

Browse files
authored
Curry0624 all (#136)
* sast-go/js/python2/python3 case update &config.json update * sast-go/js/python2/python3 case update &config.json update& java run
1 parent 2a71604 commit 1371c9d

File tree

2,846 files changed

+59526
-3207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,846 files changed

+59526
-3207
lines changed
-202 Bytes
Binary file not shown.
Binary file not shown.
-198 Bytes
Binary file not shown.
-19.7 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
// evaluation information start
3+
// real case = false
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->map
6+
// level = 2
7+
// bind_url = accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_001_F/argument_passing_reference_001_F
8+
// evaluation information end
9+
10+
package argument_passing_reference_001_F
11+
12+
func argument_passing_reference_001_F(__taint_src interface{}) {
13+
obj := map[string]interface{}{
14+
"data": __taint_src,
15+
}
16+
process(obj)
17+
__taint_sink(obj["data"])
18+
}
19+
20+
func process(obj map[string]interface{}) {
21+
obj["data"] = "_"
22+
}
23+
24+
func __taint_sink(o interface{}) {
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
// evaluation information start
3+
// real case = true
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->map
6+
// level = 2
7+
// bind_url = accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_002_T/argument_passing_reference_002_T
8+
// evaluation information end
9+
10+
package argument_passing_reference_002_T
11+
12+
func argument_passing_reference_002_T(__taint_src interface{}) {
13+
obj := map[string]interface{}{
14+
"data": "_",
15+
}
16+
process(obj, __taint_src)
17+
__taint_sink(obj["data"])
18+
}
19+
20+
func process(obj map[string]interface{}, src interface{}) {
21+
obj["data"] = src
22+
}
23+
24+
func __taint_sink(o interface{}) {
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
// evaluation information start
3+
// real case = false
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->数组
6+
// level = 2
7+
// bind_url = accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_003_F/argument_passing_reference_003_F
8+
// evaluation information end
9+
10+
package argument_passing_reference_003_F
11+
12+
func argument_passing_reference_003_F(__taint_src interface{}) {
13+
arr := []interface{}{__taint_src}
14+
process(arr)
15+
__taint_sink(arr)
16+
}
17+
18+
func process(inputArr []interface{}) {
19+
inputArr[0] = "changed"
20+
}
21+
22+
func __taint_sink(o interface{}) {
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
// evaluation information start
3+
// real case = true
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->数组
6+
// level = 2
7+
// bind_url = accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_004_T/argument_passing_reference_004_T
8+
// evaluation information end
9+
10+
package argument_passing_reference_004_T
11+
12+
func argument_passing_reference_005_T(__taint_src interface{}) {
13+
arr := []interface{}{"_"}
14+
process(arr, __taint_src)
15+
__taint_sink(arr)
16+
}
17+
18+
func process(inputArr []interface{}, src interface{}) {
19+
inputArr[0] = src
20+
}
21+
22+
func __taint_sink(o []interface{}) {
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
// evaluation information start
3+
// real case = false
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->map
6+
// level = 2
7+
// bind_url = cases/accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_005_F/argument_passing_reference_005_F
8+
// evaluation information end
9+
10+
package argument_passing_reference_005_F
11+
12+
func argument_passing_reference_006_F(__taint_src interface{}) {
13+
objA := map[string]interface{}{"name": __taint_src}
14+
objB := map[string]interface{}{"name": "Bob"}
15+
16+
swap(objA, objB)
17+
__taint_sink(objA["name"])
18+
}
19+
20+
func swap(obj1, obj2 map[string]interface{}) {
21+
temp := obj1["name"]
22+
obj1["name"] = obj2["name"]
23+
obj2["name"] = temp
24+
}
25+
26+
func __taint_sink(o interface{}) {
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
// evaluation information start
3+
// real case = true
4+
// evaluation item = 准确度->上下文敏感分析->参数/返回值传递
5+
// scene introduction = 参数值传递->引用传递->map
6+
// level = 2
7+
// bind_url = cases/accuracy/context_sensitive/argument_return_value_passing/argument_passing_reference_006_T/argument_passing_reference_006_T
8+
// evaluation information end
9+
10+
package argument_passing_reference_006_T
11+
12+
func argument_passing_reference_006_T(__taint_src interface{}) {
13+
objA := map[string]interface{}{"name": __taint_src}
14+
objB := map[string]interface{}{"name": "Bob"}
15+
16+
swap(objA, objB)
17+
__taint_sink(objB["name"])
18+
}
19+
20+
func swap(obj1, obj2 map[string]interface{}) {
21+
temp := obj1["name"]
22+
obj1["name"] = obj2["name"]
23+
obj2["name"] = temp
24+
}
25+
26+
func __taint_sink(o interface{}) {
27+
}

0 commit comments

Comments
 (0)