File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ DataFlow::Node fileInstanceInstantiation() {
2929 result = API:: getTopLevelMember ( "File" ) .getAMethodCall ( [ "open" , "try_convert" ] )
3030 or
3131 // Calls to `Kernel.open` can yield `File` instances
32- result .( KernelMethodCall ) .getMethodName ( ) = "open" and
32+ result .( KernelMethodCall ) .getKernelMethod ( ) = "open" and
3333 // Assume that calls that don't invoke shell commands will instead open
3434 // a file.
3535 not pathArgSpawnsSubprocess ( result .( KernelMethodCall ) .getArgument ( 0 ) .asExpr ( ) .getExpr ( ) )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class AmbiguousPathCall extends DataFlow::CallNode {
1313 string name ;
1414
1515 AmbiguousPathCall ( ) {
16- this .( KernelMethodCall ) .getMethodName ( ) = "open" and
16+ this .( KernelMethodCall ) .getKernelMethod ( ) = "open" and
1717 name = "Kernel.open"
1818 or
1919 this = API:: getTopLevelMember ( "IO" ) .getAMethodCall ( "read" ) and
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ module StackTraceExposure {
4141 /**
4242 * A call to `Kernel#caller`, considered as a flow source.
4343 */
44- class KernelCallerCall extends Source , Kernel:: KernelMethodCall {
45- KernelCallerCall ( ) { this . getMethodName ( ) = "caller" }
44+ class KernelCallerCall extends Source instanceof Kernel:: KernelMethodCall {
45+ KernelCallerCall ( ) { super . getKernelMethod ( ) = "caller" }
4646 }
4747
4848 /**
You can’t perform that action at this time.
0 commit comments