Skip to content

Commit 26501b4

Browse files
committed
Docs: split the aliasing section into shorter paragraphs and a list
1 parent b4d7c95 commit 26501b4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎docs/codeql/codeql-language-guides/analyzing-data-flow-in-java.rst‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ A higher limit can find more flows, but the analysis takes more time and memory.
241241
Aliasing
242242
~~~~~~~~
243243

244-
The data flow library does not perform a general alias analysis. When data is stored in a field, the analysis tracks it through the reference used for the store, and through references copied from that reference after the store. A reference that was copied before the store does not see the stored data, even though both references point to the same object. A flow that depends on such an alias is not reported, and no warning is given.
244+
The data flow library does not perform a general alias analysis. When data is stored in a field, the analysis tracks it through the reference used for the store and through references copied from that reference after the store.
245+
246+
The analysis does not track the stored data through a reference copied before the store, even though both references point to the same object. A flow that depends on such an alias is not reported, and no warning is given.
245247

246248
In the following example, the flow to ``sink(b.val)`` is reported, but the flow to ``sink(alias.val)`` is not:
247249

@@ -253,7 +255,12 @@ In the following example, the flow to ``sink(b.val)`` is reported, but the flow
253255
sink(b.val); // reported
254256
sink(alias.val); // not reported
255257
256-
The same applies when the copy is stored in a field before the store, and when the data is stored through the copy and read through the original reference. If the copy is made after the store, the flow is reported.
258+
The same applies when:
259+
260+
* The copy is stored in a field before the store.
261+
* The data is stored through the copy and read through the original reference.
262+
263+
If the copy is made after the store, the flow is reported.
257264

258265
Using global taint tracking
259266
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)