Lines Matching full:stack
1 //===-- StackProtector.cpp - Stack Protector Insertion --------------------===//
10 // This pass inserts stack protectors into functions which need them. A variable
11 // with a random value in it is stored onto the stack before the local variables
17 #define DEBUG_TYPE "stack-protector"
57 /// \brief The minimum size of buffers that will receive stack smashing
70 /// - The prologue code loads and stores the stack guard onto the stack.
75 /// CreateFailBB - Create a basic block to jump to when the stack protector
80 /// contains an array of sufficient size so that we need stack protectors
85 /// \brief Check whether a stack allocation has its address taken.
89 /// stack protector based upon the stack protector level.
111 INITIALIZE_PASS(StackProtector, "stack-protector",
112 "Insert stack protectors", false, false)
128 "stack-protector-buffer-size");
137 /// contains a char array of sufficient size so that we need stack protectors
149 // add stack protectors unless the array is a character array.
155 // emit stack protectors.
205 /// \brief Check whether or not this function needs a stack protector based
206 /// upon the stack protector level.
216 /// size, and functions that contain stack-based variables that have had their
246 // stack protectors.
269 /// variable onto the stack:
311 /// - The prologue code loads and stores the stack guard onto the stack.
317 AllocaInst *AI = 0; // Place on stack that stores the stack guard.
318 Value *StackGuardVar = 0; // The stack guard variable.
368 // Generate the stack protector instructions in the old basic block.
385 /// CreateFailBB - Create a basic block to jump to when the stack protector