Skip to content

Commit a60f510

Browse files
committed
Ruby: handle knownOrUnkown in default taint step
1 parent 2bef82b commit a60f510

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ private module Cached {
105105
exists(DataFlow::ContentSet c | readStep(nodeFrom, c, nodeTo) |
106106
c.isSingleton(any(DataFlow::Content::ElementContent ec))
107107
or
108+
c.isKnownOrUnknownElement(any(DataFlow::Content::ElementContent ec))
109+
or
108110
c.isAnyElement()
109111
)
110112
}

0 commit comments

Comments
 (0)