Skip to content
  • Bill Wendling's avatar
    Add the heuristic to differentiate SSPStrong from SSPRequired. · 7c8f96a9
    Bill Wendling authored
    The requirements of the strong heuristic are:
    
    * A Protector is required for functions which contain an array, regardless of
      type or length.
    
    * A Protector is required for functions which contain a structure/union which
      contains an array, regardless of type or length.  Note, there is no limit to
      the depth of nesting.
    
    * A protector is required when the address of a local variable (i.e., stack
      based variable) is exposed. (E.g., such as through a local whose address is
      taken as part of the RHS of an assignment or a local whose address is taken as
      part of a function argument.)
    
    llvm-svn: 173231
    7c8f96a9
Loading