Java: make inputStreamWrapper only act on constructors from outside of source

This commit is contained in:
Tony Torralba
2023-05-12 15:43:27 +02:00
parent aa14105e1c
commit 549fa7e288

View File

@@ -255,6 +255,7 @@ private class BulkData extends RefType {
* status of its argument.
*/
private predicate inputStreamWrapper(Constructor c, int argi) {
not c.fromSource() and
c.getParameterType(argi) instanceof BulkData and
c.getDeclaringType().getASourceSupertype+().hasQualifiedName("java.io", "InputStream")
}