Skip to content

Commit

Permalink
(Multiple languages) Simplify taint tracking example
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-mc committed Jan 20, 2025
1 parent d46899d commit 7ff9fcb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 7ff9fcb

Please sign in to comment.