github / github/codeql

Javascript: How can I filter some dataflow results?

Aperta
#6,920 13 commenti 0 reazioni 0 assegnatari Vedi su GitHub
JS question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

Example:
```
var a = request.body;
var obj = {
"body": a.a;
"headers": a.b
}
foo(obj)
```
while I query the above code, there are two flow path:
```
1. a -> obj.body -> foo
2. a -> obj.headers -> foo
```
And I would like to show result 1 only, and filter result 2.
How can I solve the problem? Thanks

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.