facebook pixelC and C++ Static Code Analysis Rules
BACK TO LIST

C / C++ rules

C and C++ are really performant languages and can be very error-prone. We all had core dumps and made pointer arithmetic errors! Thankfully, Codiga has hundreds of static analysis rules to flag potential errors in your C/C++ code, automate code reviews and merge with confidence.

      memsetValueOutOfRange

      Security
      High

      Invalid memset assignment

      publicAllocationError

      Security
      High

      Possible leak in public function.

      signConversionCond

      Security
      High

      Conversion between unsigned and signed values

      pointerOutOfBoundsCond

      Security
      High

      Undefined behaviour, when 'len' is 4 the pointer arithmetic 'cmd+len' is out of bounds

      argumentSize

      Security
      High

      Buffer is too small