kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

stack_overflow.c (247B)


      1 void stack_overflow_write(volatile unsigned char*);
      2 
      3 static int protected_overflow(void) {
      4   volatile unsigned char buffer[8];
      5   buffer[0] = 0;
      6   stack_overflow_write(buffer);
      7   return buffer[0];
      8 }
      9 
     10 int main(void) { return protected_overflow(); }