mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
C++: Add a definition of taint to the models library.
This commit is contained in:
@@ -15,6 +15,9 @@ import semmle.code.cpp.models.Models
|
||||
* A library function for which a taint-tracking library should propagate taint
|
||||
* from a parameter or qualifier to an output buffer, return value, or qualifier.
|
||||
*
|
||||
* An expression is tainted if it could be influenced by an attacker to have
|
||||
* an unusual value.
|
||||
*
|
||||
* Note that this does not include direct copying of values; that is covered by
|
||||
* DataFlowModel.qll. If a value is sometimes copied in full, and sometimes
|
||||
* altered (for example copying a string with `strncpy`), this is also considered
|
||||
@@ -22,4 +25,4 @@ import semmle.code.cpp.models.Models
|
||||
*/
|
||||
abstract class TaintFunction extends Function {
|
||||
abstract predicate hasTaintFlow(FunctionInput input, FunctionOutput output);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user