Versions Compared

Key

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

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

CERT C++ Secure Coding StandardINT12-CPP. Do not make assumptions about the type of a plain int bit-field when used in an expression
ISO/IEC TR 24772Bit representations [STR]
MISRA-CRule 12.7 (required): Bitwise operators shall not be applied to operands whose underlying type is signed

Bibliography

[ISO/IEC 9899:2011]Section 6.3.1.1, "Boolean, Characters, and Integers"

 

...