Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Smash Dennis.

Name: Anonymous 2013-04-11 3:21

#include <string.h>
 
void foo (char *bar)
{
   char  c[12];
 
   strcpy(c, bar);  // no bounds checking...
}
 
int main (int argc, char **argv)
{
   foo(argv[1]);
}

Name: Anonymous 2013-04-11 3:36

EEEEH EEEEEEEEH EEEEEEEEEEEEEEEEEH EEEEEEEEEEEEEEEEEEEEEEH EEEEEEEEEEEEEEEEEEEEEEEEEEEEH!

Name: Anonymous 2013-04-11 17:30

w

Name: Anonymous 2013-04-11 18:48

>implying any OS worth a damn doesn't have safeguards against such an obvious exploit

Name: Anonymous 2013-04-11 18:50


if(strlen(argv[1]) > MAX_ARG_LENGTH)
  die("argument too long\n");

Name: Anonymous 2013-04-11 19:58

only a mental midget would write such code anyway

Name: Anonymous 2013-04-11 20:34

>>6
come up with a new and better insult KIDDO

Name: Anonymous 2013-04-11 20:52

>>7
only a metal mindget would write such post anyway

Name: Anonymous 2013-04-11 21:26

>>8
>mindget
>meinget
check my >>9

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List