mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Fix erroneous treatment of varargs in models
This commit is contained in:
@@ -1863,6 +1863,13 @@ public class Test {
|
||||
out = IterableUtils.boundedIterable(in, 0L);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;chainedIterable;(Iterable[]);;Element of ArrayElement of Argument[0];Element of ReturnValue;value"
|
||||
Iterable out = null;
|
||||
Iterable in = newVectorWithElement((String)source());
|
||||
out = IterableUtils.chainedIterable(in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;chainedIterable;(Iterable,Iterable);;Element of Argument[0];Element of ReturnValue;value"
|
||||
Iterable out = null;
|
||||
@@ -2080,6 +2087,13 @@ public class Test {
|
||||
out = IterableUtils.zippingIterable((Iterable)null, in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;zippingIterable;(Iterable,Iterable[]);;Element of ArrayElement of Argument[1];Element of ReturnValue;value"
|
||||
Iterable out = null;
|
||||
Iterable in = newVectorWithElement((String)source());
|
||||
out = IterableUtils.zippingIterable((Iterable)null, in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;zippingIterable;;;Element of Argument[0];Element of ReturnValue;value"
|
||||
Iterable out = null;
|
||||
@@ -2213,6 +2227,13 @@ public class Test {
|
||||
out = IteratorUtils.collatedIterator((Comparator)null, in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;collatedIterator;(Comparator,Iterator[]);;Element of ArrayElement of Argument[1];Element of ReturnValue;value"
|
||||
Iterator out = null;
|
||||
Iterator in = newListIteratorWithElement((String)source());
|
||||
out = IteratorUtils.collatedIterator((Comparator)null, in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;collatedIterator;(Comparator,Iterator,Iterator);;Element of Argument[1];Element of ReturnValue;value"
|
||||
Iterator out = null;
|
||||
@@ -2416,6 +2437,13 @@ public class Test {
|
||||
out = IteratorUtils.unmodifiableMapIterator(in);
|
||||
sink(getMapValue(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;zippingIterator;(Iterator[]);;Element of ArrayElement of Argument[0];Element of ReturnValue;value"
|
||||
ZippingIterator out = null;
|
||||
Iterator in = newListIteratorWithElement((String)source());
|
||||
out = IteratorUtils.zippingIterator(in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;zippingIterator;(Iterator,Iterator);;Element of Argument[0];Element of ReturnValue;value"
|
||||
ZippingIterator out = null;
|
||||
@@ -3123,6 +3151,13 @@ public class Test {
|
||||
out = SetUtils.emptyIfNull(in);
|
||||
sink(out); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;SetUtils;true;hashSet;;;ArrayElement of Argument[0];Element of ReturnValue;value"
|
||||
HashSet out = null;
|
||||
Object in = source();
|
||||
out = SetUtils.hashSet(in, null);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;SetUtils;true;intersection;;;Element of Argument[0];Element of ReturnValue;value"
|
||||
SetUtils.SetView out = null;
|
||||
|
||||
Reference in New Issue
Block a user