Title: Klocwork_V  
Author: Robert Seacord (Manager) Jun 24, 2010
Last Changed by: Jill Britton Nov 06, 2024
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/_9YxBQ
Export As: Word · PDF  
Incoming Links
SEI CERT C Coding Standard (147)
    Page: DCL20-C. Explicitly specify void when a function accepts no arguments
    Page: DCL37-C. Do not declare or define a reserved identifier
    Page: EXP45-C. Do not perform assignments in selection statements
    Page: SIG34-C. Do not call signal() from within interruptible signal handlers
    Page: PRE30-C. Do not create a universal character name through concatenation
    Page: ENV32-C. All exit handlers must return normally
    Page: ENV34-C. Do not store pointers returned by certain functions
    Page: FIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call
    Page: INT09-C. Ensure enumeration constants map to unique values
    Page: MSC37-C. Ensure that control never reaches the end of a non-void function
    Page: ARR01-C. Do not apply the sizeof operator to a pointer when taking the size of an array
    Page: INT07-C. Use only explicitly signed or unsigned char type for numeric values
    Page: MSC13-C. Detect and remove unused values
    Page: POS44-C. Do not use signals to terminate threads
    Page: DCL07-C. Include the appropriate type information in function declarators
    Page: EXP42-C. Do not compare padding data
    Page: POS30-C. Use the readlink() function properly
    Page: PRE05-C. Understand macro replacement when concatenating tokens or performing stringification
    Page: ERR33-C. Detect and handle standard library errors
    Page: INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
    Page: FIO38-C. Do not copy a FILE object
    Page: INT34-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
    Page: DCL01-C. Do not reuse variable names in subscopes
    Page: ENV33-C. Do not call system()
    Page: FIO02-C. Canonicalize path names originating from tainted sources
    Page: CON38-C. Preserve thread safety and liveness when using condition variables
    Page: EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic
    Page: PRE00-C. Prefer inline or static functions to function-like macros
    Page: PRE02-C. Macro replacement lists should be parenthesized
    Page: PRE32-C. Do not use preprocessor directives in invocations of function-like macros
    Page: MSC40-C. Do not violate constraints
    Page: INT18-C. Evaluate integer expressions in a larger size before comparing or assigning to that size
    Page: MSC39-C. Do not call va_arg() on a va_list that has an indeterminate value
    Page: POS36-C. Observe correct revocation order while relinquishing privileges
    Page: EXP30-C. Do not depend on the order of evaluation for side effects
    Page: INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data
    Page: STR37-C. Arguments to character-handling functions must be representable as an unsigned char
    Page: ERR34-C. Detect errors when converting a string to a number
    Page: CON41-C. Wrap functions that can fail spuriously in a loop
    Page: EXP00-C. Use parentheses for precedence of operation
    Page: STR03-C. Do not inadvertently truncate a string
    Page: ENV30-C. Do not modify the object referenced by the return value of certain functions
    Page: Klocwork
    Page: POS52-C. Do not perform operations that can block while holding a POSIX lock
    Page: ARR38-C. Guarantee that library functions do not form invalid pointers
    Page: ENV01-C. Do not make assumptions about the size of an environment variable
    Page: DCL31-C. Declare identifiers before using them
    Page: FIO45-C. Avoid TOCTOU race conditions while accessing files
    Page: INT04-C. Enforce limits on integer values originating from tainted sources
    Page: CON33-C. Avoid race conditions when using library functions
    Page: MSC12-C. Detect and remove code that has no effect or is never executed
    Page: MEM31-C. Free dynamically allocated memory when no longer needed
    Page: MEM12-C. Consider using a goto chain when leaving a function on error when using and releasing resources
    Page: DCL38-C. Use the correct syntax when declaring a flexible array member
    Page: MSC41-C. Never hard code sensitive information
    Page: MSC17-C. Finish every set of statements associated with a case label with a break statement
    Page: POS02-C. Follow the principle of least privilege
    Page: EXP12-C. Do not ignore values returned by functions
    Page: MSC30-C. Do not use the rand() function for generating pseudorandom numbers
    Page: MEM34-C. Only free memory allocated dynamically
    Page: DCL30-C. Declare objects with appropriate storage durations
    Page: MEM05-C. Avoid large stack allocations
    Page: FLP34-C. Ensure that floating-point conversions are within range of the new type
    Page: INT30-C. Ensure that unsigned integer operations do not wrap
    Page: EXP37-C. Call functions with the correct number and type of arguments
    Page: MSC01-C. Strive for logical completeness
    Page: WIN00-C. Be specific when dynamically loading libraries
    Page: MEM33-C. Allocate and copy structures containing a flexible array member dynamically
    Page: MSC33-C. Do not pass invalid data to the asctime() function
    Page: CON37-C. Do not call signal() in a multithreaded program
    Page: EXP34-C. Do not dereference null pointers
    Page: WIN30-C. Properly pair allocation and deallocation functions
    Page: DCL23-C. Guarantee that mutually visible identifiers are unique
    Page: ARR39-C. Do not add or subtract a scaled integer to a pointer
    Page: POS37-C. Ensure that privilege relinquishment is successful
    Page: DCL19-C. Minimize the scope of variables and functions
    Page: ARR30-C. Do not form or use out-of-bounds pointers or array subscripts
    Page: FIO30-C. Exclude user input from format strings
    Page: POS54-C. Detect and handle POSIX library errors
    Page: FIO44-C. Only use values for fsetpos() that are returned from fgetpos()
    Page: STR02-C. Sanitize data passed to complex subsystems
    Page: EXP46-C. Do not use a bitwise operator with a Boolean-like operand
    Page: ARR00-C. Understand how arrays work
    Page: DCL18-C. Do not begin integer constants with 0 when specifying a decimal value
    Page: INT36-C. Converting a pointer to integer or integer to pointer
    Page: POS39-C. Use the correct byte ordering when transferring data between systems
    Page: FIO42-C. Close files when they are no longer needed
    Page: EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
    Page: STR38-C. Do not confuse narrow and wide character strings and functions
    Page: EXP08-C. Ensure pointer arithmetic is used correctly
    Page: PRE01-C. Use parentheses within macros around parameter names
    Page: STR05-C. Use pointers to const when referring to string literals
    Page: EXP32-C. Do not access a volatile object through a nonvolatile reference
    Page: EXP33-C. Do not read uninitialized memory
    Page: FIO47-C. Use valid format strings
    Page: EXP36-C. Do not cast pointers into more strictly aligned pointer types
    Page: DCL36-C. Do not declare an identifier with conflicting linkage classifications
    Page: EXP16-C. Do not compare function pointers to constant values
    Page: EXP39-C. Do not access a variable through a pointer of an incompatible type
    Page: POS51-C. Avoid deadlock with POSIX threads by locking in predefined order
    Page: FIO46-C. Do not access a closed file
    Page: POS47-C. Do not use threads that can be canceled asynchronously
    Page: MEM30-C. Do not access freed memory
    Page: PRE31-C. Avoid side effects in arguments to unsafe macros
    Page: INT32-C. Ensure that operations on signed integers do not result in overflow
    Page: ERR30-C. Take care when reading errno
    Page: POS35-C. Avoid race conditions while checking for the existence of a symbolic link
    Page: STR34-C. Cast characters to unsigned char before converting to larger integer sizes
    Page: CON40-C. Do not refer to an atomic variable twice in an expression
    Page: INT12-C. Do not make assumptions about the type of a plain int bit-field when used in an expression
    Page: DCL10-C. Maintain the contract between the writer and caller of variadic functions
    Page: FLP37-C. Do not use object representations to compare floating-point values
    Page: PRE10-C. Wrap multistatement macros in a do-while loop
    Page: MEM36-C. Do not modify the alignment of objects by calling realloc()
    Page: POS34-C. Do not call putenv() with a pointer to an automatic variable as the argument
    Page: CON05-C. Do not perform operations that can block while holding a lock
    Page: CON35-C. Avoid deadlock by locking in a predefined order
    Page: MSC32-C. Properly seed pseudorandom number generators
    Page: PRE06-C. Enclose header files in an include guard
    Page: STR32-C. Do not pass a non-null-terminated character sequence to a library function that expects a string
    Page: FIO22-C. Close files before spawning processes
    Page: DCL13-C. Declare function parameters that are pointers to values not changed by the function as const
    Page: EXP19-C. Use braces for the body of an if, for, or while statement
    Page: EXP47-C. Do not call va_arg with an argument of the incorrect type
    Page: DCL11-C. Understand the type issues associated with variadic functions
    Page: MEM00-C. Allocate and free memory in the same module, at the same level of abstraction
    Page: MSC07-C. Detect and remove dead code
    Page: DCL41-C. Do not declare variables inside a switch statement before the first case label
    Page: FIO34-C. Distinguish between characters read from a file and EOF or WEOF
    Page: INT13-C. Use bitwise operators only on unsigned operands
    Page: STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
    Page: ARR36-C. Do not subtract or compare two pointers that do not refer to the same array
    Page: ERR32-C. Do not rely on indeterminate values of errno
    Page: ARR37-C. Do not add or subtract an integer to a pointer to a non-array object
    Page: INT02-C. Understand integer conversion rules
    Page: CON36-C. Wrap functions that can spuriously wake up in a loop
    Page: STR30-C. Do not attempt to modify string literals
    Page: SIG35-C. Do not return from a computational exception signal handler
    Page: FIO01-C. Be careful using functions that use file names for identification
    Page: ARR32-C. Ensure size arguments for variable length arrays are in a valid range
    Page: EXP02-C. Be aware of the short-circuit behavior of the logical AND and OR operators
    Page: DCL39-C. Avoid information leakage when passing a structure across a trust boundary
    Page: DCL40-C. Do not create incompatible declarations of the same function or object
    Page: EXP15-C. Do not place a semicolon on the same line as an if, for, or while statement
    Page: FLP30-C. Do not use floating-point variables as loop counters
    Page: FLP36-C. Preserve precision when converting integral values to floating-point type
    Page: MEM35-C. Allocate sufficient memory for an object
Hierarchy
Parent Page
    Page: EE. Analyzers
Labels
There are no labels assigned to this page.