Skip to content

Commit 6ba35f4

Browse files
committed
C++: Fix function renaming and accept test change.
1 parent 9f02c14 commit 6ba35f4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cpp/ql/test/library-tests/dataflow/DefaultTaintTracking/annotate_sinks_only/defaulttainttracking.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111

12-
int test() {
12+
int main() {
1313

1414

1515

@@ -19,7 +19,7 @@ int test() {
1919

2020
char untainted_buf[100] = "";
2121
char buf[100] = "VAR = ";
22-
sink(strcat(buf, getenv("VAR"))); // $ ast,ir
22+
sink(strcat(buf, getenv("VAR"))); // $ ast MISSING: ir
2323

2424
sink(buf); // $ ast,ir
2525
sink(untainted_buf); // the two buffers would be conflated if we added flow through all partial chi inputs
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
| defaulttainttracking.cpp:22:37:22:47 | // $ ast,ir | Missing result:ir= |

0 commit comments

Comments
 (0)