mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Accept improved test output
This commit is contained in:
@@ -300,7 +300,7 @@ int unsigned_implicit_conversion(unsigned int ui1) {
|
||||
|
||||
int signedness_cast1(u8 c) {
|
||||
if ((signed char)c == 0) {
|
||||
if (c >= 5) { // BAD [NOT DETECTED]
|
||||
if (c >= 5) { // BAD
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -309,7 +309,7 @@ int signedness_cast1(u8 c) {
|
||||
|
||||
int signedness_cast2(signed char c) {
|
||||
if ((u8)c == 0) {
|
||||
if (c >= 5) { // BAD [NOT DETECTED]
|
||||
if (c >= 5) { // BAD
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
| PointlessComparison.c:273:9:273:18 | ... > ... | Comparison is always false because c <= 0. |
|
||||
| PointlessComparison.c:283:13:283:19 | ... >= ... | Comparison is always true because c >= 11. |
|
||||
| PointlessComparison.c:294:9:294:16 | ... >= ... | Comparison is always false because ui1 <= 0. |
|
||||
| PointlessComparison.c:303:9:303:14 | ... >= ... | Comparison is always false because c <= 0. |
|
||||
| PointlessComparison.c:312:9:312:14 | ... >= ... | Comparison is always false because c <= 0. |
|
||||
| PointlessComparison.c:337:14:337:21 | ... >= ... | Comparison is always true because x >= 0. |
|
||||
| RegressionTests.cpp:57:7:57:22 | ... <= ... | Comparison is always true because * ... <= 4294967295. |
|
||||
| Templates.cpp:9:10:9:24 | ... <= ... | Comparison is always true because local <= 32767. |
|
||||
|
||||
Reference in New Issue
Block a user