GitHub
CERT Secure Coding

Cppcheck

This page was automatically generated and should not be edited.

The information on this page was provided by outside contributors and has not been verified by SEI CERT.

The table below can be re-ordered, by clicking column headers.

Tool Version: 2.15

CheckerGuideline
arrayIndexOutOfBoundsARR30-C. Do not form or use out-of-bounds pointers or array subscripts
arrayIndexOutOfBoundsCondARR30-C. Do not form or use out-of-bounds pointers or array subscripts
arrayIndexThenCheckARR30-C. Do not form or use out-of-bounds pointers or array subscripts
autoVariablesDCL30-C. Declare objects with appropriate storage durations
autovarInvalidDeallocationMEM34-C. Only free memory allocated dynamically
bitwiseOnBooleanEXP46-C. Do not use a bitwise operator with a Boolean-like operand
comparePointersARR36-C. Do not subtract or compare two pointers that do not refer to the same array
danglingLifetimeDCL30-C. Declare objects with appropriate storage durations
deallocretMEM30-C. Do not access freed memory
deallocuseMEM30-C. Do not access freed memory
doubleFreeMEM30-C. Do not access freed memory
floatConversionOverflowFLP34-C. Ensure that floating-point conversions are within range of the new type
ignoredReturnValueEXP12-C. Do not ignore values returned by functions
invalidLengthModifierErrorFIO47-C. Use valid format strings
invalidLifetimeDCL30-C. Declare objects with appropriate storage durations
invalidscanfFIO47-C. Use valid format strings
invalidScanfFormatWidthFIO47-C. Use valid format strings
IOWithoutPositioningFIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call
leakReturnValNotUsedMEM31-C. Free dynamically allocated memory when no longer needed
leakReturnValNotUsedEXP12-C. Do not ignore values returned by functions
leakUnsafeArgAllocMEM31-C. Free dynamically allocated memory when no longer needed
memleakMEM31-C. Free dynamically allocated memory when no longer needed
memleakOnReallocMEM31-C. Free dynamically allocated memory when no longer needed
memsetValueOutOfRangeINT31-C. Ensure that integer conversions do not result in lost or misinterpreted data
mismatchAllocDeallocMEM34-C. Only free memory allocated dynamically
missingReturnMSC37-C. Ensure that control never reaches the end of a non-void function
negativeArraySizeARR32-C. Ensure size arguments for variable length arrays are in a valid range
negativeIndexARR30-C. Do not form or use out-of-bounds pointers or array subscripts
nullPointerEXP34-C. Do not dereference null pointers
nullPointerDefaultArgEXP34-C. Do not dereference null pointers
nullPointerRedundantCheckEXP34-C. Do not dereference null pointers
outOfBoundsARR30-C. Do not form or use out-of-bounds pointers or array subscripts
possibleBufferAccessOutOfBoundsARR30-C. Do not form or use out-of-bounds pointers or array subscripts
preprocessorErrorDirectivePRE30-C. Do not create a universal character name through concatenation
resourceLeakFIO42-C. Close files when they are no longer needed
returnDanglingLifetimeDCL30-C. Declare objects with appropriate storage durations
shiftNegativeINT34-C. Do not shift an expression by a negative number of bits or by greater than or equal to the number of bits that exist in the operand
shiftTooManyBitsINT34-C. Do not shift an expression by a negative number of bits or by greater than or equal to the number of bits that exist in the operand
suspiciousFloatingPointCastFLP34-C. Ensure that floating-point conversions are within range of the new type
uninitdataEXP33-C. Do not read uninitialized memory
uninitMemberVarEXP33-C. Do not read uninitialized memory
uninitstringEXP33-C. Do not read uninitialized memory
uninitStructMemberEXP33-C. Do not read uninitialized memory
uninitvarEXP33-C. Do not read uninitialized memory
unknownEvaluationOrderEXP30-C. Do not depend on the order of evaluation for side effects
wrongPrintfScanfArgNumFIO47-C. Use valid format strings
wrongPrintfScanfParameterPositionErrorFIO47-C. Use valid format strings
zerodivINT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
zerodivcondINT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors