Skip to content

Commit 46681a7

Browse files
authored
修改错误的注释 (#124)
1 parent 25bc04e commit 46681a7

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

sast-java/src/main/java/com/sast/astbenchmark/case_language_maturity/accuracy/context_sensitive/return_value_passing/return_value_passing_001_T.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.springframework.web.bind.annotation.RestController;
77

88
/**
9-
* Introduction 递归函数-间接递归
10-
* Level 4 负样本
9+
* Introduction 准确度->上下文敏感->返回值传递
10+
* Level 2
1111
*/
1212
// evaluation information start
1313
// real case = true
@@ -26,7 +26,6 @@ public static void returnValuePassing001T(@RequestParam String __taint_src) {
2626

2727
private static String process(String __taint_src) {
2828
String tmp = __taint_src;
29-
tmp = "_";
3029
return tmp;
3130
}
3231

sast-java/src/main/java/com/sast/astbenchmark/case_language_maturity/accuracy/context_sensitive/return_value_passing/return_value_passing_002_F.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.springframework.web.bind.annotation.RestController;
77

88
/**
9-
* Introduction 递归函数-间接递归
10-
* Level 4 负样本
9+
* Introduction 准确度->上下文敏感->返回值传递
10+
* Level 2
1111
*/
1212
// evaluation information start
1313
// real case = false
@@ -26,6 +26,7 @@ public static void returnValuePassing002F(@RequestParam String __taint_src) {
2626

2727
private static String process(String __taint_src) {
2828
String tmp = __taint_src;
29+
tmp = "_";
2930
return tmp;
3031
}
3132

sast-java/src/main/java/com/sast/astbenchmark/case_language_maturity/completeness/single_app_tracing/function_call/return_value_passing/return_value_passing_001_T.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.springframework.web.bind.annotation.RestController;
77

88
/**
9-
* Introduction 递归函数-间接递归
10-
* Level 4 负样本
9+
* Introduction 完整度->链路跟踪完整度->函数调用->返回值传递->普通
10+
* Level 2
1111
*/
1212
// evaluation information start
1313
// real case = true
@@ -25,7 +25,6 @@ public static void returnValuePassing001T(@RequestParam String __taint_src) {
2525

2626
private static String process(String __taint_src) {
2727
String tmp = __taint_src;
28-
tmp = "_";
2928
return tmp;
3029
}
3130

sast-java/src/main/java/com/sast/astbenchmark/case_language_maturity/completeness/single_app_tracing/function_call/return_value_passing/return_value_passing_002_F.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import org.springframework.web.bind.annotation.RestController;
77

88
/**
9-
* Introduction 递归函数-间接递归
10-
* Level 4 负样本
9+
* Introduction 完整度->链路跟踪完整度->函数调用->返回值传递->普通
10+
* Level 2
1111
*/
1212
// evaluation information start
1313
// real case = false
@@ -25,7 +25,7 @@ public static void returnValuePassing002F(@RequestParam String __taint_src) {
2525

2626
private static String process(String __taint_src) {
2727
String tmp = __taint_src;
28-
return tmp;
28+
return "_";
2929
}
3030

3131
private static void __taint_sink(Object o) {

0 commit comments

Comments
 (0)