[RTEMS Project] #4379: crypt-sha512.c: Constant variable guards dead code
RTEMS trac
trac at rtems.org
Tue Apr 6 21:03:29 UTC 2021
#4379: crypt-sha512.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 1018087: Constant variable guards dead code in crypt_sha512_r().
{{{
assignment: Assigning: copied_salt = NULL.
77 copied_salt = NULL;
.
.
.
276 memset(copied_key, '\0', key_len);
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.
277 if (copied_salt != NULL)
}}}
CID 1018088: Constant variable guards dead code in crypt_sha512_r().
{{{
75
assignment: Assigning: copied_key = NULL.
76 copied_key = NULL;
.
.
.
274 memset(&alt_ctx, '\0', sizeof(alt_ctx));
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.
275 if (copied_key != NULL)
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4379>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list