We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce004e9 commit 9a74f18Copy full SHA for 9a74f18
ruby/ql/lib/codeql/ruby/frameworks/Files.qll
@@ -34,7 +34,7 @@ private predicate pathArgSpawnsSubprocess(Expr arg) {
34
private DataFlow::Node fileInstanceInstantiation() {
35
result = API::getTopLevelMember("File").getAnInstantiation()
36
or
37
- result = API::getTopLevelMember("File").getAMethodCall("open")
+ result = API::getTopLevelMember("File").getAMethodCall(["open", "try_convert"])
38
39
// Calls to `Kernel.open` can yield `File` instances
40
result.(KernelMethodCall).getMethodName() = "open" and
0 commit comments