Skip to content

Commit 549fa7e

Browse files
committed
Java: make inputStreamWrapper only act on constructors from outside of source
1 parent aa14105 commit 549fa7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/lib/semmle/code/java/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ private class BulkData extends RefType {
255255
* status of its argument.
256256
*/
257257
private predicate inputStreamWrapper(Constructor c, int argi) {
258+
not c.fromSource() and
258259
c.getParameterType(argi) instanceof BulkData and
259260
c.getDeclaringType().getASourceSupertype+().hasQualifiedName("java.io", "InputStream")
260261
}

0 commit comments

Comments
 (0)