Skip to content

Commit faa23a5

Browse files
committed
CPP: Update expected for changes elsewhere.
1 parent e7c0202 commit faa23a5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/ArithmeticTainted.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@
88
| test.c:14:15:14:28 | maxConnections | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:11:29:11:32 | argv | User-provided value |
99
| test.c:44:7:44:10 | len2 | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:41:17:41:20 | argv | User-provided value |
1010
| test.c:54:7:54:10 | len3 | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:51:17:51:20 | argv | User-provided value |
11-
| test.c:74:7:74:10 | len5 | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:71:19:71:22 | argv | User-provided value |
12-
| test.c:84:7:84:10 | len6 | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:81:19:81:22 | argv | User-provided value |
13-
| test.c:94:7:94:10 | len7 | $@ flows to here and is used in arithmetic, potentially causing an underflow. | test.c:91:19:91:22 | argv | User-provided value |

cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int main(int argc, char** argv) {
7171
len5 = strlen(argv[1]);
7272
while (len5)
7373
{
74-
len5--; // GOOD: can't underflow [FALSE POSITIVE]
74+
len5--; // GOOD: can't underflow
7575
}
7676
}
7777

@@ -81,7 +81,7 @@ int main(int argc, char** argv) {
8181
len6 = strlen(argv[1]);
8282
while (len6 != 0)
8383
{
84-
len6--; // GOOD: can't underflow [FALSE POSITIVE]
84+
len6--; // GOOD: can't underflow
8585
}
8686
}
8787

@@ -91,7 +91,7 @@ int main(int argc, char** argv) {
9191
len7 = strlen(argv[1]);
9292
while ((len7) && (1))
9393
{
94-
len7--; // GOOD: can't underflow [FALSE POSITIVE]
94+
len7--; // GOOD: can't underflow
9595
}
9696
}
9797

0 commit comments

Comments
 (0)