You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System.Security.Cryptography;classProgram{staticvoidMain(){HashAlgorithmNamename=new HashAlgorithmName("SHA1");}}
Adding the word "new" in the above rule causes the following error:
Internal matching error when running hashname-standard-lib-c-sharp on target.cs:
An error occurred while invoking the Semgrep engine. Please help us fix this by creating an issue at https://github.com/returntocorp/semgrep
metavariable-pattern failed because $NAME does not bind to a sub-program, please check your rule
My workaround is to replace the above metavariable-pattern with an equivalent metavariable-regex.
What is the priority of the bug to you?
P0: blocking your adoption of Semgrep or workflow
P1: important to fix or quite annoying
P2: regular bug that should get fixed
Environment
Semgrep playground
The text was updated successfully, but these errors were encountered:
semgrep version
v1.70.0
test code:
Adding the word "new" in the above rule causes the following error:
My workaround is to replace the above metavariable-pattern with an equivalent metavariable-regex.
What is the priority of the bug to you?
Environment
Semgrep playground
The text was updated successfully, but these errors were encountered: