mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
11 lines
266 B
Plaintext
11 lines
266 B
Plaintext
import dotnet
|
|
import semmle.code.csharp.commons.Disposal
|
|
import cil
|
|
|
|
from DotNet::Callable c, DotNet::Parameter param, int p
|
|
where
|
|
not mayBeDisposed(param) and
|
|
param.getType().hasName("TextWriter") and
|
|
param = c.getParameter(p)
|
|
select c.toStringWithTypes(), p
|