Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ffcccc
langc
int login;

if (invalid_login())
  login = 0;
else
  printf("Login is valid\n");  /* Debugging line added here */
  login = 1;                   /* This line always gets executed, regardless of a valid login! */

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

EXP19-C

mediumMedium

probableProbable

mediumMedium

P8

L2

Related Guidelines

MISRA C:2012Rule 15.6 (required)

...

 

...