mirror of
https://github.com/github/codeql.git
synced 2026-03-05 07:06:47 +01:00
Java: make inputStreamWrapper only act on constructors from outside of source
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user