Java: Add back StringInputStream to CloseReader.ql

This commit is contained in:
Marcono1234
2021-05-14 22:25:00 +02:00
parent 8969da7775
commit 73c7e15580

View File

@@ -25,6 +25,9 @@ predicate readerType(RefType t) {
predicate safeReaderType(RefType t) {
exists(RefType sup | sup = t.getASupertype*() |
sup.hasQualifiedName("java.io", ["CharArrayReader", "StringReader", "ByteArrayInputStream"])
or
// Note: It is unclear which specific class this is supposed to match
sup.hasName("StringInputStream")
)
}