False positive (javascript): "Invalid regular expression flag" for v flag
Abierto
false-positive
- Lenguaje dominante
- CodeQL
- Estrellas
- 10.1k
- Forks
- 2.1k
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 141
Descripción
**Description of the false positive**
`v` is a valid regular expression flag
**Code samples or links to source code**
```js
let x = /abc/v;
```
https://github.com/mozilla/pdf.js/blob/d88035525c69b72ecec2f5ea21b591d2d541a2b5/web/autolinker.js#L112
**URL to the alert on GitHub code scanning (optional)**
Guía de contribución
Línea de trabajo
Start with the JavaScript sample and the referenced web/autolinker.js line 112 in pdf.js, then reproduce the code-scanning alert for the /abc/v expression. Trace which regular-expression flag handling produces the warning and verify that the valid v flag no longer triggers it.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- security
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100