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 StandardINT14-CPP. Avoid performing bitwise and arithmetic operations on the same data
CERT Oracle Secure Coding Standard for JavaNUM01-J. Do not perform bitwise and arithmetic operations on the same data
ISO/IEC TR 24772Bit representations [STR]
MISRA-CRule 6.4 (required): Bit fields shall only be defined to be of type unsigned int or signed int
Rule 6.5 (required): Bit fields of type signed int shall be at least 2 bits long

Bibliography