(Multiple languages) Simplify taint tracking example

This commit is contained in:
Owen Mansel-Chan
2025-01-17 16:59:37 +00:00
parent d46899d37b
commit 7ff9fcb445
6 changed files with 6 additions and 12 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.