mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Update python/ql/test/experimental/dataflow/model-summaries/model_summaries.py
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -120,7 +120,14 @@ ensure_tainted(
|
||||
tainted_list_implicit[0] # $ tainted
|
||||
)
|
||||
|
||||
# Modeled flow-summary is not value preserving
|
||||
from json import MS_loads as json_loads
|
||||
|
||||
# so no data-flow
|
||||
SINK_F(json_loads(SOURCE))
|
||||
SINK_F(json_loads(SOURCE)[0])
|
||||
|
||||
# but has taint-flow
|
||||
tainted_resultlist = json_loads(TAINTED_STRING)
|
||||
ensure_tainted(
|
||||
tainted_resultlist, # $ tainted
|
||||
|
||||
Reference in New Issue
Block a user