mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Fix isParameterDeref typo.
This commit is contained in:
@@ -34,7 +34,7 @@ private class StrsetFunction extends ArrayFunction, DataFlowFunction, AliasFunct
|
||||
(
|
||||
output.isReturnValueDeref()
|
||||
or
|
||||
output.isParameterDeref(1)
|
||||
output.isParameterDeref(0)
|
||||
)
|
||||
or
|
||||
// flow from the input string to the output string
|
||||
|
||||
@@ -5874,6 +5874,7 @@
|
||||
| taint.cpp:504:10:504:12 | ref arg ptr | taint.cpp:505:7:505:9 | ptr | |
|
||||
| taint.cpp:504:10:504:12 | ref arg ptr | taint.cpp:506:8:506:10 | ptr | |
|
||||
| taint.cpp:504:15:504:20 | source | taint.cpp:504:2:504:8 | call to _strset | TAINT |
|
||||
| taint.cpp:504:15:504:20 | source | taint.cpp:504:10:504:12 | ref arg ptr | |
|
||||
| taint.cpp:505:7:505:9 | ref arg ptr | taint.cpp:506:8:506:10 | ptr | |
|
||||
| taint.cpp:506:8:506:10 | ptr | taint.cpp:506:7:506:10 | * ... | TAINT |
|
||||
| taint.cpp:509:26:509:31 | source | taint.cpp:510:10:510:15 | source | |
|
||||
@@ -5881,6 +5882,7 @@
|
||||
| taint.cpp:510:10:510:15 | ref arg source | taint.cpp:511:7:511:12 | source | |
|
||||
| taint.cpp:510:10:510:15 | source | taint.cpp:510:2:510:8 | call to _strset | |
|
||||
| taint.cpp:510:18:510:18 | 0 | taint.cpp:510:2:510:8 | call to _strset | TAINT |
|
||||
| taint.cpp:510:18:510:18 | 0 | taint.cpp:510:10:510:15 | ref arg source | |
|
||||
| vector.cpp:16:43:16:49 | source1 | vector.cpp:17:26:17:32 | source1 | |
|
||||
| vector.cpp:16:43:16:49 | source1 | vector.cpp:31:38:31:44 | source1 | |
|
||||
| vector.cpp:17:21:17:33 | call to vector | vector.cpp:19:14:19:14 | v | |
|
||||
|
||||
@@ -502,8 +502,8 @@ char *_strset(char *str, int c);
|
||||
|
||||
void test_strset_1(char* ptr, char source) {
|
||||
_strset(ptr, source);
|
||||
sink(ptr);
|
||||
sink(*ptr); // $ MISSING: ast,ir
|
||||
sink(ptr); // $ SPURIOUS: ast,ir
|
||||
sink(*ptr); // $ ast,ir
|
||||
}
|
||||
|
||||
void test_strset_2(char* source) {
|
||||
|
||||
Reference in New Issue
Block a user