mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Add missing CollectionUtils model
This commit is contained in:
@@ -26,6 +26,7 @@ private class FlowSummaries extends SummaryModelCsv {
|
||||
"org.springframework.util;Base64Utils;false;encodeToUrlSafeString;;;Argument[0];ReturnValue;taint",
|
||||
"org.springframework.util;Base64Utils;false;encodeUrlSafe;;;Argument[0];ReturnValue;taint",
|
||||
"org.springframework.util;CollectionUtils;false;arrayToList;;;ArrayElement of Argument[0];Element of ReturnValue;value",
|
||||
"org.springframework.util;CollectionUtils;false;findFirstMatch;;;Element of Argument[0];ReturnValue;value",
|
||||
"org.springframework.util;CollectionUtils;false;findValueOfType;;;Element of Argument[0];ReturnValue;value",
|
||||
"org.springframework.util;CollectionUtils;false;firstElement;;;Element of Argument[0];ReturnValue;value",
|
||||
"org.springframework.util;CollectionUtils;false;lastElement;;;Element of Argument[0];ReturnValue;value",
|
||||
|
||||
@@ -198,6 +198,13 @@ public class Test {
|
||||
out = CollectionUtils.arrayToList(in);
|
||||
sink(getElement(out)); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;CollectionUtils;false;findFirstMatch;;;Element of Argument[0];ReturnValue;value"
|
||||
Object out = null;
|
||||
Collection in = List.of(source());
|
||||
out = CollectionUtils.findFirstMatch(in, null);
|
||||
sink(out); // $hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.springframework.util;CollectionUtils;false;findValueOfType;;;Element of Argument[0];ReturnValue;value"
|
||||
Object out = null;
|
||||
|
||||
Reference in New Issue
Block a user