mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Update docs/codeql/codeql-language-guides/advanced-dataflow-scenarios-cpp.rst
Co-authored-by: Felicity Chapman <felicitymay@github.com>
This commit is contained in:
committed by
GitHub
parent
0d36d918c9
commit
8812567c69
@@ -191,7 +191,7 @@ We have an important choice here: Should the relationship between ``n2`` and ``f
|
||||
Using asIndirectExpr
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
If we use ``n2.asIndirectExpr() = fa`` we specify that flow moves to what ``fa`` points to. This allows dataflow to flow through a later dereference, which is exactly what we need to to flow from ``p`` to ``*p`` in ``process_user_data``.
|
||||
If we use ``n2.asIndirectExpr() = fa`` we specify that flow moves to what ``fa`` points to. This allows data to flow through a later dereference, which is exactly what we need to track data flow from ``p`` to ``*p`` in ``process_user_data``.
|
||||
|
||||
Thus we get the required flow path.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user