Skip to content

Commit f2047ee

Browse files
committed
C++: Actually fix expected files after layout changes.
1 parent a0b712d commit f2047ee

File tree

8 files changed

+100
-100
lines changed

8 files changed

+100
-100
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
edges
2-
| examples.cpp:62:26:62:30 | & ... | examples.cpp:65:11:65:14 | data |
3-
| examples.cpp:62:26:62:30 | & ... | examples.cpp:65:11:65:14 | data |
4-
| examples.cpp:62:26:62:30 | fscanf output argument | examples.cpp:65:11:65:14 | data |
5-
| examples.cpp:62:26:62:30 | fscanf output argument | examples.cpp:65:11:65:14 | data |
2+
| examples.cpp:63:26:63:30 | & ... | examples.cpp:66:11:66:14 | data |
3+
| examples.cpp:63:26:63:30 | & ... | examples.cpp:66:11:66:14 | data |
4+
| examples.cpp:63:26:63:30 | fscanf output argument | examples.cpp:66:11:66:14 | data |
5+
| examples.cpp:63:26:63:30 | fscanf output argument | examples.cpp:66:11:66:14 | data |
66
nodes
7-
| examples.cpp:62:26:62:30 | & ... | semmle.label | & ... |
8-
| examples.cpp:62:26:62:30 | fscanf output argument | semmle.label | fscanf output argument |
9-
| examples.cpp:65:11:65:14 | data | semmle.label | data |
10-
| examples.cpp:65:11:65:14 | data | semmle.label | data |
11-
| examples.cpp:65:11:65:14 | data | semmle.label | data |
7+
| examples.cpp:63:26:63:30 | & ... | semmle.label | & ... |
8+
| examples.cpp:63:26:63:30 | fscanf output argument | semmle.label | fscanf output argument |
9+
| examples.cpp:66:11:66:14 | data | semmle.label | data |
10+
| examples.cpp:66:11:66:14 | data | semmle.label | data |
11+
| examples.cpp:66:11:66:14 | data | semmle.label | data |
1212
#select
13-
| examples.cpp:65:11:65:14 | data | examples.cpp:62:26:62:30 | & ... | examples.cpp:65:11:65:14 | data | $@ flows to here and is used in arithmetic, potentially causing an underflow. | examples.cpp:62:26:62:30 | & ... | User-provided value |
13+
| examples.cpp:66:11:66:14 | data | examples.cpp:63:26:63:30 | & ... | examples.cpp:66:11:66:14 | data | $@ flows to here and is used in arithmetic, potentially causing an underflow. | examples.cpp:63:26:63:30 | & ... | User-provided value |

cpp/ql/test/query-tests/Security/CWE/CWE-190/SAMATE/ArithmeticUncontrolled.expected

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| examples.cpp:65:9:65:14 | -- ... | $@ flows to here and is used in an expression which might overflow negatively. | examples.cpp:62:26:62:30 | & ... | User-provided value |
1+
| examples.cpp:66:9:66:14 | -- ... | $@ flows to here and is used in an expression which might overflow negatively. | examples.cpp:63:26:63:30 | & ... | User-provided value |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| tests.c:71:9:71:15 | call to fprintf | This operation exposes system data from $@. | tests.c:55:13:55:22 | call to LogonUserA | call to LogonUserA |
1+
| tests.c:70:9:70:15 | call to fprintf | This operation exposes system data from $@. | tests.c:54:13:54:22 | call to LogonUserA | call to LogonUserA |
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
| tests.c:30:9:30:14 | call to printf | tests.c:30:16:30:21 | %s\n |
2-
| tests.c:30:9:30:14 | call to printf | tests.c:30:24:30:27 | line |
3-
| tests.c:44:13:44:21 | call to printLine | tests.c:44:23:44:38 | fgets() failed |
4-
| tests.c:63:13:63:21 | call to printLine | tests.c:63:23:63:52 | User logged in successfully. |
5-
| tests.c:68:13:68:21 | call to printLine | tests.c:68:23:68:40 | Unable to login. |
6-
| tests.c:71:9:71:15 | call to fprintf | tests.c:71:25:71:67 | User attempted access with password: %s\n |
7-
| tests.c:71:9:71:15 | call to fprintf | tests.c:71:70:71:77 | password |
1+
| tests.c:29:9:29:14 | call to printf | tests.c:29:16:29:21 | %s\n |
2+
| tests.c:29:9:29:14 | call to printf | tests.c:29:24:29:27 | line |
3+
| tests.c:43:13:43:21 | call to printLine | tests.c:43:23:43:38 | fgets() failed |
4+
| tests.c:62:13:62:21 | call to printLine | tests.c:62:23:62:52 | User logged in successfully. |
5+
| tests.c:67:13:67:21 | call to printLine | tests.c:67:23:67:40 | Unable to login. |
6+
| tests.c:70:9:70:15 | call to fprintf | tests.c:70:25:70:67 | User attempted access with password: %s\n |
7+
| tests.c:70:9:70:15 | call to fprintf | tests.c:70:70:70:77 | password |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
| tests.cpp:223:12:223:16 | call to fopen | The file is never closed |
2-
| tests.cpp:255:12:255:15 | call to open | The file is never closed |
3-
| tests.cpp:281:12:281:21 | call to CreateFile | The file is never closed |
1+
| tests.cpp:220:12:220:16 | call to fopen | The file is never closed |
2+
| tests.cpp:252:12:252:15 | call to open | The file is never closed |
3+
| tests.cpp:278:12:278:21 | call to CreateFile | The file is never closed |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| tests.cpp:201:31:201:36 | call to malloc | The memory allocated here may not be released at $@. | tests.cpp:215:1:215:1 | return ... | this exit point |
2-
| tests.cpp:328:5:328:68 | ... = ... | The memory allocated here may not be released at $@. | tests.cpp:336:1:336:1 | return ... | this exit point |
1+
| tests.cpp:198:31:198:36 | call to malloc | The memory allocated here may not be released at $@. | tests.cpp:212:1:212:1 | return ... | this exit point |
2+
| tests.cpp:325:5:325:68 | ... = ... | The memory allocated here may not be released at $@. | tests.cpp:333:1:333:1 | return ... | this exit point |
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| tests.cpp:74:20:74:26 | new | This memory is never freed |
2-
| tests.cpp:139:24:139:29 | call to malloc | This memory is never freed |
1+
| tests.cpp:71:20:71:26 | new | This memory is never freed |
2+
| tests.cpp:136:24:136:29 | call to malloc | This memory is never freed |

0 commit comments

Comments
 (0)