File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
lib/codeql/ruby/dataflow/internal
test/library-tests/modules Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -302,11 +302,7 @@ private module Cached {
302
302
result = lookupMethod ( tp , method ) and
303
303
if result .( Method ) .isPrivate ( )
304
304
then
305
- exists ( SelfVariableAccess self |
306
- self = call .getReceiver ( ) .getExpr ( ) and
307
- pragma [ only_bind_out ] ( self .getEnclosingModule ( ) .getModule ( ) .getSuperClass * ( ) ) =
308
- pragma [ only_bind_out ] ( result .getEnclosingModule ( ) .getModule ( ) )
309
- ) and
305
+ call .getReceiver ( ) .getExpr ( ) instanceof SelfVariableAccess and
310
306
// For now, we restrict the scope of top-level declarations to their file.
311
307
// This may remove some plausible targets, but also removes a lot of
312
308
// implausible targets
Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ getTarget
191
191
| private.rb:67:3:69:5 | call to private | calls.rb:109:5:109:20 | private |
192
192
| private.rb:68:7:68:32 | call to puts | calls.rb:102:5:102:30 | puts |
193
193
| private.rb:72:7:72:8 | call to m1 | private.rb:63:11:65:5 | m1 |
194
+ | private.rb:72:7:72:8 | call to m1 | private.rb:77:11:81:5 | m1 |
194
195
| private.rb:77:3:81:5 | call to private | calls.rb:109:5:109:20 | private |
195
196
| private.rb:78:7:78:32 | call to puts | calls.rb:102:5:102:30 | puts |
196
197
| private.rb:79:7:79:8 | call to m2 | private.rb:67:11:69:5 | m2 |
You can’t perform that action at this time.
0 commit comments