Merge pull request #2593 from asger-semmle/regexp-always-matches

JS: Add RegExpAlwaysMatches query
This commit is contained in:
Max Schaefer
2020-01-08 15:21:39 +00:00
committed by GitHub
11 changed files with 303 additions and 19 deletions

View File

@@ -19,6 +19,7 @@
| **Query** | **Tags** | **Purpose** |
|---------------------------------------------------------------------------------|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Cross-site scripting through exception (`js/xss-through-exception`) | security, external/cwe/cwe-079, external/cwe/cwe-116 | Highlights potential XSS vulnerabilities where an exception is written to the DOM. Results are not shown on LGTM by default. |
| Regular expression always matches (`js/regex/always-matches`) | correctness, regular-expressions | Highlights regular expression checks that trivially succeed by matching an empty substring. Results are shown on LGTM by default. |
## Changes to existing queries