File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
cpp/ql/src/semmle/code/cpp/models Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ class Strftime extends TaintFunction, ArrayFunction {
10
10
input .isParameterDeref ( 2 ) or
11
11
input .isParameterDeref ( 3 )
12
12
) and
13
- (
14
- output .isParameterDeref ( 0 ) or
15
- output .isReturnValue ( )
16
- )
13
+ output .isParameterDeref ( 0 )
17
14
}
18
15
19
16
override predicate hasArrayWithNullTerminator ( int bufParam ) { bufParam = 2 }
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ import semmle.code.cpp.models.Models
15
15
* A library function for which a taint-tracking library should propagate taint
16
16
* from a parameter or qualifier to an output buffer, return value, or qualifier.
17
17
*
18
+ * An expression is tainted if it could be influenced by an attacker to have
19
+ * an unusual value.
20
+ *
18
21
* Note that this does not include direct copying of values; that is covered by
19
22
* DataFlowModel.qll. If a value is sometimes copied in full, and sometimes
20
23
* altered (for example copying a string with `strncpy`), this is also considered
You can’t perform that action at this time.
0 commit comments