Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update expected test results after frontend update #865

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
| test.c:17:3:17:17 | (unsigned int)... | Conversion from signed int to unsigned int may cause data loss (casting from range -2147483648...2147483647 to range 0...4294967295). |
| test.c:34:3:34:17 | (signed short)... | Conversion from signed int to signed short may cause data loss (casting from range -2147483648...2147483647 to range -32768...32767). |
| test.c:51:3:51:19 | (unsigned short)... | Conversion from unsigned int to unsigned short may cause data loss (casting from range 0...4294967295 to range 0...65535). |
| test.c:74:14:74:15 | (unsigned int)... | Conversion from int to unsigned int may cause data loss (casting from range -1...-1 to range 0...4294967295). |
| test.c:77:14:77:23 | (time_t)... | Conversion from int to unsigned int may cause data loss (casting from range -1...-1 to range 0...4294967295). |
| test.c:89:3:89:19 | (unsigned char)... | Conversion from signed int to unsigned char may cause data loss (casting from range 100000...100000 to range 0...255). |
| test.c:92:3:92:19 | (unsigned char)... | Conversion from signed int to unsigned char may cause data loss (casting from range -129...-129 to range 0...255). |
| test.c:93:3:93:19 | (unsigned char)... | Conversion from signed int to unsigned char may cause data loss (casting from range 256...256 to range 0...255). |
Expand Down
6 changes: 3 additions & 3 deletions c/cert/test/rules/INT31-C/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ time_t time(time_t *seconds);

void test_time_t_check_against_zero(time_t x) {
time_t now = time(0);
if (now != -1) { // NON_COMPLIANT[FALSE_NEGATIVE] - there is no conversion
// here in our model
if (now != -1) { // NON_COMPLIANT
}
if (now != (time_t)-1) { // COMPLIANT

if (now != (time_t)-1) { // COMPLIANT[FALSE_POSITIVE]
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| test.cpp:33:7:33:7 | call to operator A | User-defined conversion operators should not be used. |
| test.cpp:35:24:35:24 | call to operator A * | User-defined conversion operators should not be used. |
| test.cpp:37:15:37:15 | call to operator A (*)[3] | User-defined conversion operators should not be used. |
| test.cpp:37:15:37:15 | call to operator B::array_A * | User-defined conversion operators should not be used. |
| test.cpp:41:7:41:7 | call to operator A * | User-defined conversion operators should not be used. |
Loading