Skip to content

Commit f245657

Browse files
authored
Merge pull request github#6029 from atorralba/atorralba/tainted-key-read-steps
Java: Add Map key-read-steps as local additional taint steps
2 parents e7b9603 + c828c70 commit f245657

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* Data flow now propagates taint from tainted Maps to read steps of their keys (e.g. `tainted.keySet()`).

java/ql/src/semmle/code/java/dataflow/internal/TaintTrackingUtil.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ private module Cached {
6969
|
7070
f instanceof ArrayContent or
7171
f instanceof CollectionContent or
72+
f instanceof MapKeyContent or
7273
f instanceof MapValueContent
7374
)
7475
or

0 commit comments

Comments
 (0)