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
378378 e = mid .asElement ( )
379379 |
380380 ( c = "Parameter" or c = "" ) and
381- node . asNode ( ) . asParameter ( ) = e .asEntity ( )
381+ n . asParameter ( ) = pragma [ only_bind_into ] ( e ) .asEntity ( )
382382 or
383383 exists ( DataFlow:: FieldReadNode frn | frn = n |
384384 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 ( ) )
387387 )
388388 )
389389 }
@@ -404,7 +404,7 @@ module SourceSinkInterpretationInput implements
404404 |
405405 c = "" and
406406 fw .writesField ( base , f , node .asNode ( ) ) and
407- elementAppliesToQualifier ( e , base )
407+ elementAppliesToQualifier ( pragma [ only_bind_into ] ( e ) , base )
408408 )
409409 }
410410}
You can’t perform that action at this time.
0 commit comments