mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
(Multiple languages) Simplify taint tracking example
This commit is contained in:
@@ -65,8 +65,7 @@ Local taint tracking extends local data flow by including non-value-preserving f
|
||||
|
||||
.. code-block:: csharp
|
||||
|
||||
var temp = x;
|
||||
var y = temp + ", " + temp;
|
||||
var y = "Hello " + x;
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
@@ -76,8 +76,7 @@ Local taint tracking extends local data flow by including non-value-preserving f
|
||||
|
||||
.. code-block:: go
|
||||
|
||||
temp := x;
|
||||
y := temp + ", " + temp;
|
||||
y := "Hello " + x;
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
@@ -74,8 +74,7 @@ Local taint tracking extends local data flow by including non-value-preserving f
|
||||
|
||||
.. code-block:: java
|
||||
|
||||
String temp = x;
|
||||
String y = temp + ", " + temp;
|
||||
String y = "Hello " + x;
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
@@ -62,8 +62,7 @@ Local taint tracking extends local data flow by including non-value-preserving f
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
temp = x
|
||||
y = temp + ", " + temp
|
||||
y = "Hello " + x
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
@@ -74,8 +74,7 @@ For example:
|
||||
|
||||
.. code-block:: ruby
|
||||
|
||||
temp = x
|
||||
y = temp + ", " + temp
|
||||
y = "Hello " + x
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
@@ -72,8 +72,7 @@ For example:
|
||||
|
||||
.. code-block:: swift
|
||||
|
||||
temp = x
|
||||
y = temp + ", " + temp
|
||||
y = "Hello " + x
|
||||
|
||||
If ``x`` is a tainted string then ``y`` is also tainted.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user