File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
go/ql/lib/semmle/go/dataflow/internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -378,12 +378,12 @@ module SourceSinkInterpretationInput implements
378
378
e = mid .asElement ( )
379
379
|
380
380
( c = "Parameter" or c = "" ) and
381
- node . asNode ( ) . asParameter ( ) = e .asEntity ( )
381
+ n . asParameter ( ) = pragma [ only_bind_into ] ( e ) .asEntity ( )
382
382
or
383
383
exists ( DataFlow:: FieldReadNode frn | frn = n |
384
384
c = "" and
385
- frn .getField ( ) = e .asEntity ( ) and
386
- elementAppliesToQualifier ( e , frn .getBase ( ) )
385
+ frn .getField ( ) = pragma [ only_bind_into ] ( e ) .asEntity ( ) and
386
+ elementAppliesToQualifier ( pragma [ only_bind_into ] ( e ) , frn .getBase ( ) )
387
387
)
388
388
)
389
389
}
@@ -404,7 +404,7 @@ module SourceSinkInterpretationInput implements
404
404
|
405
405
c = "" and
406
406
fw .writesField ( base , f , node .asNode ( ) ) and
407
- elementAppliesToQualifier ( e , base )
407
+ elementAppliesToQualifier ( pragma [ only_bind_into ] ( e ) , base )
408
408
)
409
409
}
410
410
}
You can’t perform that action at this time.
0 commit comments