Skip to content

Commit 68e3be1

Browse files
committed
C++: Accept test changes.
1 parent d539ce0 commit 68e3be1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero/UnsignedDifferenceExpressionComparedZero.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@
1414
| test.cpp:276:11:276:19 | ... > ... | Unsigned subtraction can never be negative. |
1515
| test.cpp:288:10:288:18 | ... > ... | Unsigned subtraction can never be negative. |
1616
| test.cpp:312:9:312:25 | ... > ... | Unsigned subtraction can never be negative. |
17-
| test.cpp:335:6:335:18 | ... > ... | Unsigned subtraction can never be negative. |

cpp/ql/test/query-tests/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void test20(int a, bool b, unsigned long c)
332332
x = a - c;
333333
}
334334

335-
if (a - c - x > 0) // GOOD [FALSE POSITIVE]
335+
if (a - c - x > 0) // GOOD
336336
{
337337
}
338338
}

0 commit comments

Comments
 (0)