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
Thanks for reporting this bug. It looks like constant propagation doesn't work for variables occurring in array slices e.g. x isn't replaced by its value in a[1:x] but it works for simple array indices such as a[x].
Describe the bug
The
metavariable-comparison
does not work as expected. It should also match when a value in the index 'comes from' a variable.To Reproduce
https://semgrep.dev/playground/s/NbJPp
Expected behavior
The 9th line should be caught.
What is the priority of the bug to you?
The text was updated successfully, but these errors were encountered: