Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3378c4

Browse files
committed
C#: Prevent bad magic in getArgumentForParameter()
1 parent 4b81ffa commit c3378c4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • csharp/ql/src/semmle/code/csharp/exprs

csharp/ql/src/semmle/code/csharp/exprs/Call.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class Call extends DotNet::Call, Expr, @call {
7676
* }
7777
* ```
7878
*/
79+
pragma[nomagic]
7980
override Expr getArgumentForParameter(DotNet::Parameter p) {
8081
getTarget().getAParameter() = p and
8182
(

0 commit comments

Comments
 (0)