Vulnerability Development mailing list archives

Re: buffer overflow - fundamentals


From: "Larry W. Cashdollar" <lwc () VAPID DHS ORG>
Date: Thu, 8 Feb 2001 10:25:03 -0800

I think a better example would have been.

int main(int argc, char *argv[]) {
char buffer[256];

        strcpy(buffer,argv[1]);
        printf("%s\n",buffer);
return 0;
}


this was probably not what the original author intended.

--rpc



Current thread: