Skip to content

Commit 1baf144

Browse files
committed
C++: Add a definition of taint to the models library.
1 parent 965d482 commit 1baf144

File tree

1 file changed

+4
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/interfaces

1 file changed

+4
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/interfaces/Taint.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ import semmle.code.cpp.models.Models
1515
* A library function for which a taint-tracking library should propagate taint
1616
* from a parameter or qualifier to an output buffer, return value, or qualifier.
1717
*
18+
* An expression is tainted if it could be influenced by an attacker to have
19+
* an unusual value.
20+
*
1821
* Note that this does not include direct copying of values; that is covered by
1922
* DataFlowModel.qll. If a value is sometimes copied in full, and sometimes
2023
* altered (for example copying a string with `strncpy`), this is also considered
2124
* data flow.
2225
*/
2326
abstract class TaintFunction extends Function {
2427
abstract predicate hasTaintFlow(FunctionInput input, FunctionOutput output);
25-
}
28+
}

0 commit comments

Comments
 (0)