[RTEMS Project] #4381: crypt-sha256.c: Constant variable guards dead code
RTEMS trac
trac at rtems.org
Wed Apr 7 13:01:01 UTC 2021
#4381: crypt-sha256.c: Constant variable guards dead code
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1018089: Constant variable guards dead code in crypt_sha256_r().
{{{
assignment: Assigning: copied_salt = NULL.
77 copied_salt = NULL;
.
.
.
null: At condition copied_salt != NULL, the value of copied_salt must
be NULL.
dead_error_condition: The condition copied_salt != NULL cannot be true.
265 if (copied_salt != NULL)
CID 1018089 (#1 of 1): 'Constant' variable guards dead code
(DEADCODE)dead_error_line: Execution cannot reach this statement:
memset(copied_salt, 0, salt....
}}}
CID 1018090: Constant variable guards dead code in crypt_sha256_r().
{{{
assignment: Assigning: copied_key = NULL.
76 copied_key = NULL;
.
.
.
null: At condition copied_key != NULL, the value of copied_key must be
NULL.
dead_error_condition: The condition copied_key != NULL cannot be true.
263 if (copied_key != NULL)
CID 1018090 (#1 of 1): 'Constant' variable guards dead code
(DEADCODE)dead_error_line: Execution cannot reach this statement:
memset(copied_key, 0, key_l....
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4381>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list