Title: Astrée_V  
Author: Joerg Herter Sep 04, 2017
Last Changed by: Joerg Herter Apr 16, 2024
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/K9cxBQ
Export As: Word · PDF  
Incoming Links
SEI CERT C Coding Standard (180)
    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: PRE30-C. Do not create a universal character name through concatenation
    Page: API01-C. Avoid laying out strings in memory directly before sensitive data
    Page: SIG34-C. Do not call signal() from within interruptible signal handlers
    Page: DCL07-C. Include the appropriate type information in function declarators
    Page: DCL20-C. Explicitly specify void when a function accepts no arguments
    Page: INT16-C. Do not make assumptions about representation of signed integers
    Page: EXP45-C. Do not perform assignments in selection statements
    Page: CON34-C. Declare objects shared between threads with appropriate storage durations
    Page: DCL37-C. Do not declare or define a reserved identifier
    Page: PRE09-C. Do not replace secure functions with deprecated or obsolescent functions
    Page: ERR33-C. Detect and handle standard library errors
    Page: MEM34-C. Only free memory allocated dynamically
    Page: CON43-C. Do not allow data races in multithreaded code
    Page: DCL40-C. Do not create incompatible declarations of the same function or object
    Page: EXP03-C. Do not assume the size of a structure is the sum of the sizes of its members
    Page: EXP12-C. Do not ignore values returned by functions
    Page: ENV32-C. All exit handlers must return normally
    Page: FLP34-C. Ensure that floating-point conversions are within range of the new type
    Page: FIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call
    Page: MSC37-C. Ensure that control never reaches the end of a non-void function
    Page: PRE00-C. Prefer inline or static functions to function-like macros
    Page: WIN01-C. Do not forcibly terminate execution
    Page: STR07-C. Use the bounds-checking interfaces for string manipulation
    Page: MSC04-C. Use comments consistently and in a readable fashion
    Page: FLP06-C. Convert integers to floating point for floating-point operations
    Page: EXP42-C. Do not compare padding data
    Page: INT13-C. Use bitwise operators only on unsigned operands
    Page: DCL01-C. Do not reuse variable names in subscopes
    Page: MSC21-C. Use robust loop termination conditions
    Page: FLP03-C. Detect and handle floating-point errors
    Page: PRE11-C. Do not conclude macro definitions with a semicolon
    Page: POS36-C. Observe correct revocation order while relinquishing privileges
    Page: INT18-C. Evaluate integer expressions in a larger size before comparing or assigning to that size
    Page: CON01-C. Acquire and release synchronization primitives in the same module, at the same level of abstraction
    Page: MSC15-C. Do not depend on undefined behavior
    Page: MSC24-C. Do not use deprecated or obsolescent functions
    Page: MSC40-C. Do not violate constraints
    Page: EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic
    Page: POS30-C. Use the readlink() function properly
    Page: API04-C. Provide a consistent and usable error-checking mechanism
    Page: PRE32-C. Do not use preprocessor directives in invocations of function-like macros
    Page: STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
    Page: INT08-C. Verify that all integer values are in range
    Page: MSC13-C. Detect and remove unused values
    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: ENV31-C. Do not rely on an environment pointer following an operation that may invalidate it
    Page: EXP15-C. Do not place a semicolon on the same line as an if, for, or while statement
    Page: FLP37-C. Do not use object representations to compare floating-point values
    Page: CON31-C. Do not destroy a mutex while it is locked
    Page: INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data
    Page: MEM35-C. Allocate sufficient memory for an object
    Page: DCL10-C. Maintain the contract between the writer and caller of variadic functions
    Page: MEM07-C. Ensure that the arguments to calloc(), when multiplied, do not wrap
    Page: FLP36-C. Preserve precision when converting integral values to floating-point type
    Page: ARR36-C. Do not subtract or compare two pointers that do not refer to the same array
    Page: EXP30-C. Do not depend on the order of evaluation for side effects
    Page: MEM02-C. Immediately cast the result of a memory allocation function call into a pointer to the allocated type
    Page: SIG31-C. Do not access shared objects in signal handlers
    Page: FLP30-C. Do not use floating-point variables as loop counters
    Page: POS34-C. Do not call putenv() with a pointer to an automatic variable as the argument
    Page: MSC07-C. Detect and remove dead code
    Page: MEM36-C. Do not modify the alignment of objects by calling realloc()
    Page: FLP32-C. Prevent or detect domain and range errors in math functions
    Page: EXP09-C. Use sizeof to determine the size of a type or variable
    Page: ENV33-C. Do not call system()
    Page: ARR37-C. Do not add or subtract an integer to a pointer to a non-array object
    Page: EXP08-C. Ensure pointer arithmetic is used correctly
    Page: FIO37-C. Do not assume that fgets() or fgetws() returns a nonempty string when successful
    Page: INT02-C. Understand integer conversion rules
    Page: DCL39-C. Avoid information leakage when passing a structure across a trust boundary
    Page: EXP05-C. Do not cast away a const qualification
    Page: FIO34-C. Distinguish between characters read from a file and EOF or WEOF
    Page: ARR01-C. Do not apply the sizeof operator to a pointer when taking the size of an array
    Page: EXP02-C. Be aware of the short-circuit behavior of the logical AND and OR operators
    Page: FIO38-C. Do not copy a FILE object
    Page: FIO41-C. Do not call getc(), putc(), getwc(), or putwc() with a stream argument that has side effects
    Page: INT09-C. Ensure enumeration constants map to unique values
    Page: PRE12-C. Do not define unsafe macros
    Page: DCL41-C. Do not declare variables inside a switch statement before the first case label
    Page: EXP40-C. Do not modify constant objects
    Page: ERR32-C. Do not rely on indeterminate values of errno
    Page: EXP19-C. Use braces for the body of an if, for, or while statement
    Page: CON03-C. Ensure visibility when accessing shared variables
    Page: MSC23-C. Beware of vendor-specific library and language differences
    Page: STR32-C. Do not pass a non-null-terminated character sequence to a library function that expects a string
    Page: CON39-C. Do not join or detach a thread that was previously joined or detached
    Page: INT07-C. Use only explicitly signed or unsigned char type for numeric values
    Page: EXP13-C. Treat relational and equality operators as if they were nonassociative
    Page: EXP34-C. Do not dereference null pointers
    Page: EXP20-C. Perform explicit tests to determine success, true and false, and equality
    Page: INT36-C. Converting a pointer to integer or integer to pointer
    Page: CON32-C. Prevent data races when accessing bit-fields from multiple threads
    Page: EXP46-C. Do not use a bitwise operator with a Boolean-like operand
    Page: EXP36-C. Do not cast pointers into more strictly aligned pointer types
    Page: MEM04-C. Beware of zero-length allocations
    Page: STR34-C. Cast characters to unsigned char before converting to larger integer sizes
    Page: MEM33-C. Allocate and copy structures containing a flexible array member dynamically
    Page: PRE31-C. Avoid side effects in arguments to unsafe macros
    Page: DCL23-C. Guarantee that mutually visible identifiers are unique
    Page: EXP35-C. Do not modify objects with temporary lifetime
    Page: CON40-C. Do not refer to an atomic variable twice in an expression
    Page: ARR30-C. Do not form or use out-of-bounds pointers or array subscripts
    Page: CON37-C. Do not call signal() in a multithreaded program
    Page: DCL19-C. Minimize the scope of variables and functions
    Page: MEM30-C. Do not access freed memory
    Page: STR30-C. Do not attempt to modify string literals
    Page: FIO30-C. Exclude user input from format strings
    Page: FIO46-C. Do not access a closed file
    Page: POS37-C. Ensure that privilege relinquishment is successful
    Page: PRE01-C. Use parentheses within macros around parameter names
    Page: CON06-C. Ensure that every mutex outlives the data it protects
    Page: EXP33-C. Do not read uninitialized memory
    Page: MSC33-C. Do not pass invalid data to the asctime() function
    Page: STR38-C. Do not confuse narrow and wide character strings and functions
    Page: PRE07-C. Avoid using repeated question marks
    Page: POS35-C. Avoid race conditions while checking for the existence of a symbolic link
    Page: STR10-C. Do not concatenate different type of string literals
    Page: ERR06-C. Understand the termination behavior of assert() and abort()
    Page: EXP16-C. Do not compare function pointers to constant values
    Page: EXP11-C. Do not make assumptions regarding the layout of structures with bit-fields
    Page: FIO42-C. Close files when they are no longer needed
    Page: ERR30-C. Take care when reading errno
    Page: DCL18-C. Do not begin integer constants with 0 when specifying a decimal value
    Page: INT12-C. Do not make assumptions about the type of a plain int bit-field when used in an expression
    Page: POS54-C. Detect and handle POSIX library errors
    Page: POS47-C. Do not use threads that can be canceled asynchronously
    Page: MSC38-C. Do not treat a predefined identifier as an object if it might only be implemented as a macro
    Page: POS51-C. Avoid deadlock with POSIX threads by locking in predefined order
    Page: POS39-C. Use the correct byte ordering when transferring data between systems
    Page: DCL13-C. Declare function parameters that are pointers to values not changed by the function as const
    Page: WIN30-C. Properly pair allocation and deallocation functions
    Page: DCL36-C. Do not declare an identifier with conflicting linkage classifications
    Page: STR02-C. Sanitize data passed to complex subsystems
    Page: EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
    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: STR09-C. Don't assume numeric values for expressions with type plain character
    Page: ARR38-C. Guarantee that library functions do not form invalid pointers
    Page: INT35-C. Use correct integer precisions
    Page: DCL00-C. Const-qualify immutable objects
    Page: API00-C. Functions should validate their parameters
    Page: STR37-C. Arguments to character-handling functions must be representable as an unsigned char
    Page: Astrée
    Page: CON33-C. Avoid race conditions when using library functions
    Page: DCL38-C. Use the correct syntax when declaring a flexible array member
    Page: STR00-C. Represent characters using an appropriate type
    Page: MSC30-C. Do not use the rand() function for generating pseudorandom numbers
    Page: MEM31-C. Free dynamically allocated memory when no longer needed
    Page: ENV30-C. Do not modify the object referenced by the return value of certain functions
    Page: MSC01-C. Strive for logical completeness
    Page: CON30-C. Clean up thread-specific storage
    Page: INT32-C. Ensure that operations on signed integers do not result in overflow
    Page: EXP37-C. Call functions with the correct number and type of arguments
    Page: DCL15-C. Declare file-scope objects or functions that do not need external linkage as static
    Page: DCL05-C. Use typedefs of non-pointer types only
    Page: STR04-C. Use plain char for characters in the basic character set
    Page: MSC17-C. Finish every set of statements associated with a case label with a break statement
    Page: ARR02-C. Explicitly specify array bounds, even if implicitly defined by an initializer
    Page: MSC09-C. Character encoding: Use subset of ASCII for safety
    Page: EXP14-C. Beware of integer promotion when performing bitwise operations on integer types smaller than int
    Page: SIG30-C. Call only asynchronous-safe functions within signal handlers
    Page: MSC20-C. Do not use a switch statement to transfer control into a complex block
    Page: MSC41-C. Never hard code sensitive information
    Page: ERR07-C. Prefer functions that support error checking over equivalent functions that don't
    Page: ARR39-C. Do not add or subtract a scaled integer to a pointer
    Page: FLP02-C. Avoid using floating-point numbers when precise computation is needed
    Page: FLP04-C. Check floating-point inputs for exceptional values
    Page: INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
    Page: DCL16-C. Use "L," not "l," to indicate a long value
    Page: EXP10-C. Do not depend on the order of evaluation of subexpressions or the order in which side effects take place
    Page: INT30-C. Ensure that unsigned integer operations do not wrap
    Page: MSC12-C. Detect and remove code that has no effect or is never executed
    Page: DCL30-C. Declare objects with appropriate storage durations
    Page: DCL31-C. Declare identifiers before using them
    Page: INT04-C. Enforce limits on integer values originating from tainted sources
    Page: MEM01-C. Store a new value in pointers immediately after free()
    Page: STR11-C. Do not specify the bound of a character array initialized with a string literal
Hierarchy
Parent Page
    Page: EE. Analyzers
Labels
There are no labels assigned to this page.