mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Remove toString taint propagation
We do not do this for other overrides of toString
This commit is contained in:
@@ -315,20 +315,6 @@ public class Test {
|
||||
out = in.mySetValue((Object)null);
|
||||
sink(out); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;AbstractKeyValue;true;toString;;;MapKey of Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
AbstractKeyValue in = newMAKVWithMapKey((String)source());
|
||||
out = in.toString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;AbstractKeyValue;true;toString;;;MapValue of Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
AbstractKeyValue in = newMAKVWithMapValue((String)source());
|
||||
out = in.toString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;AbstractMapEntry;true;AbstractMapEntry;;;Argument[0];MapKey of Argument[-1];value"
|
||||
AbstractMapEntry out = null;
|
||||
@@ -371,20 +357,6 @@ public class Test {
|
||||
out = in.myGetMapEntry();
|
||||
sink(getMapValueFromEntry(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;AbstractMapEntryDecorator;true;toString;;;MapKey of Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
AbstractMapEntryDecorator in = newMAMEDWithMapKey((String)source());
|
||||
out = in.toString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;AbstractMapEntryDecorator;true;toString;;;MapValue of Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
AbstractMapEntryDecorator in = newMAMEDWithMapValue((String)source());
|
||||
out = in.toString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4.keyvalue;DefaultKeyValue;true;DefaultKeyValue;(Entry);;MapKey of Argument[0];MapKey of Argument[-1];value"
|
||||
DefaultKeyValue out = null;
|
||||
@@ -1763,13 +1735,6 @@ public class Test {
|
||||
out = in.toList();
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;FluentIterable;true;toString;;;Element of Argument[-1];ReturnValue;taint"
|
||||
String out = null;
|
||||
FluentIterable in = newFluentIterableWithElement((String)source());
|
||||
out = in.toString();
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;FluentIterable;true;unique;;;Element of Argument[-1];Element of ReturnValue;value"
|
||||
FluentIterable out = null;
|
||||
@@ -2178,27 +2143,6 @@ public class Test {
|
||||
out = IterableUtils.toList(in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterable in = newVectorWithElement((String)source());
|
||||
out = IterableUtils.toString(in, null, null, null, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterable in = newVectorWithElement((String)source());
|
||||
out = IterableUtils.toString(in, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterable in = newVectorWithElement((String)source());
|
||||
out = IterableUtils.toString(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IterableUtils;true;toString;;;Argument[2];ReturnValue;taint"
|
||||
String out = null;
|
||||
@@ -2598,27 +2542,6 @@ public class Test {
|
||||
out = IteratorUtils.toListIterator(in);
|
||||
sink(getElement(out)); // $ hasValueFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterator in = newListIteratorWithElement((String)source());
|
||||
out = IteratorUtils.toString(in, null, null, null, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterator in = newListIteratorWithElement((String)source());
|
||||
out = IteratorUtils.toString(in, null);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;toString;;;Element of Argument[0];ReturnValue;taint"
|
||||
String out = null;
|
||||
Iterator in = newListIteratorWithElement((String)source());
|
||||
out = IteratorUtils.toString(in);
|
||||
sink(out); // $ hasTaintFlow
|
||||
}
|
||||
{
|
||||
// "org.apache.commons.collections4;IteratorUtils;true;toString;;;Argument[2];ReturnValue;taint"
|
||||
String out = null;
|
||||
|
||||
Reference in New Issue
Block a user