Skip to content

Commit b13bad7

Browse files
jketemasashabu
authored andcommitted
C++: Update expected test changes after frontend update
1 parent 52b4c88 commit b13bad7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-134/semmle/argv/argvLocal.expected

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ edges
7979
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:15:136:18 | -- ... |
8080
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:15:136:18 | -- ... |
8181
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:15:136:18 | -- ... |
82-
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:15:136:18 | -- ... |
83-
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:15:136:18 | -- ... |
8482
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:17:136:18 | i4 |
8583
| argvLocal.c:115:13:115:16 | argv | argvLocal.c:136:17:136:18 | i4 |
8684
| argvLocal.c:126:10:126:13 | argv | argvLocal.c:127:9:127:10 | i5 |
@@ -193,7 +191,6 @@ nodes
193191
| argvLocal.c:135:9:135:12 | ... ++ | semmle.label | ... ++ |
194192
| argvLocal.c:136:15:136:18 | -- ... | semmle.label | -- ... |
195193
| argvLocal.c:136:15:136:18 | -- ... | semmle.label | -- ... |
196-
| argvLocal.c:136:15:136:18 | -- ... | semmle.label | -- ... |
197194
| argvLocal.c:136:17:136:18 | i4 | semmle.label | i4 |
198195
| argvLocal.c:139:9:139:26 | ... ? ... : ... | semmle.label | ... ? ... : ... |
199196
| argvLocal.c:139:9:139:26 | ... ? ... : ... | semmle.label | ... ? ... : ... |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
| test.c:50:3:50:5 | sc3 | $@ flows to an operand of an arithmetic expression, potentially causing an overflow. | test.c:49:9:49:16 | 127 | Extreme value |
44
| test.c:59:3:59:5 | sc6 | $@ flows to an operand of an arithmetic expression, potentially causing an overflow. | test.c:58:9:58:16 | 127 | Extreme value |
55
| test.c:63:3:63:5 | sc8 | $@ flows to an operand of an arithmetic expression, potentially causing an underflow. | test.c:62:9:62:16 | - ... | Extreme value |
6+
| test.c:68:3:68:6 | sc10 | $@ flows to an operand of an arithmetic expression, potentially causing an overflow. | test.c:68:11:68:18 | 127 | Extreme value |
67
| test.c:124:9:124:9 | x | $@ flows to an operand of an arithmetic expression, potentially causing an overflow. | test.c:118:17:118:23 | 2147483647 | Extreme value |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void test_crement() {
6565
sc9 += 1; // GOOD
6666

6767
sc10 = 1;
68-
sc10 += CHAR_MAX; // BAD [NOT DETECTED]
68+
sc10 += CHAR_MAX; // BAD
6969
}
7070

7171
void test_negatives() {

0 commit comments

Comments
 (0)