Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added risk assessment

...

Code Block
bgColor#ccccff
langc
if (!(getuid() && geteuid() == 0)) {
  /* ... */
}

Risk Assessment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP17-C

low

likely

low

P3

L3


Automated Detection

Tool

Version

Checker

Description

Coverity

Include Page
Coverity_V
Coverity_V

CONSTANT_EXPRESSION_RESULT

Can detect the specific instance where bitwise operator is used in place of logical operator, or vice versa. The behavior might be desirable in some situations, so further verification is necessary

PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
3344,4502 

...