mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
C++: Update expected test results after outputting less loads from the extractor
This commit is contained in:
@@ -3,5 +3,4 @@
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
||||
@@ -65,7 +65,7 @@ void test_crement() {
|
||||
sc9 += 1; // GOOD
|
||||
|
||||
sc10 = 1;
|
||||
sc10 += CHAR_MAX; // BAD
|
||||
sc10 += CHAR_MAX; // BAD [NOT DETECTED]
|
||||
}
|
||||
|
||||
void test_negatives() {
|
||||
|
||||
Reference in New Issue
Block a user