Stack buffer overflow
Download
1 / 8

Stack buffer overflow - PowerPoint PPT Presentation


  • 47 Views
  • Uploaded on

Stack buffer overflow. Stack frame layout. #include < string.h > void foo (char *bar) { char c[12]; strcpy (c, bar); //no bound } int main ( int argc , char ** argv ) { foo( argv [1]); }. #include < string.h > void foo (char *bar) { char c[12]; strcpy (c, bar); //no bound

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Stack buffer overflow' - raja


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript


Stack buffer overflow

#include <string.h>

void foo (char *bar)

{

char c[12];

strcpy (c, bar); //no bound

}

int main (intargc, char **argv)

{

foo(argv[1]);

}


Stack buffer overflow

#include <string.h>

void foo (char *bar)

{

char c[12];

strcpy (c, bar); //no bound

}

int main (intargc, char **argv)

{

foo(argv[1]);

}


Stack buffer overflow

#include <string.h>

void foo (char *bar)

{

char c[12];

strcpy (c, bar); //no bound

}

int main (intargc, char **argv)

{

foo(argv[1]);

}


Stack buffer overflow
Demo

  • Linux


Homework 3
Homework 3

  • Due next week. Tuesday??

  • Stack buffer overflow problem, very similar to what we have described today.

  • Demo.