File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/semmle/code/java/frameworks/spring
test/library-tests/frameworks/spring/util Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ private class FlowSummaries extends SummaryModelCsv {
26
26
"org.springframework.util;Base64Utils;false;encodeToUrlSafeString;;;Argument[0];ReturnValue;taint" ,
27
27
"org.springframework.util;Base64Utils;false;encodeUrlSafe;;;Argument[0];ReturnValue;taint" ,
28
28
"org.springframework.util;CollectionUtils;false;arrayToList;;;ArrayElement of Argument[0];Element of ReturnValue;value" ,
29
+ "org.springframework.util;CollectionUtils;false;findFirstMatch;;;Element of Argument[0];ReturnValue;value" ,
29
30
"org.springframework.util;CollectionUtils;false;findValueOfType;;;Element of Argument[0];ReturnValue;value" ,
30
31
"org.springframework.util;CollectionUtils;false;firstElement;;;Element of Argument[0];ReturnValue;value" ,
31
32
"org.springframework.util;CollectionUtils;false;lastElement;;;Element of Argument[0];ReturnValue;value" ,
Original file line number Diff line number Diff line change @@ -198,6 +198,13 @@ public void test() throws Exception {
198
198
out = CollectionUtils .arrayToList (in );
199
199
sink (getElement (out )); // $hasValueFlow
200
200
}
201
+ {
202
+ // "org.springframework.util;CollectionUtils;false;findFirstMatch;;;Element of Argument[0];ReturnValue;value"
203
+ Object out = null ;
204
+ Collection in = List .of (source ());
205
+ out = CollectionUtils .findFirstMatch (in , null );
206
+ sink (out ); // $hasValueFlow
207
+ }
201
208
{
202
209
// "org.springframework.util;CollectionUtils;false;findValueOfType;;;Element of Argument[0];ReturnValue;value"
203
210
Object out = null ;
You can’t perform that action at this time.
0 commit comments