Vuln Dev
Back to list
Name:
Email:
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Subject:
Message:
Re: Re: understanding buffer overflows
Nov 01 2007 11:48PM
ma rebeco at
thank you!
this was a great example but it didnt work on my debian machine. - but it worked better than mine.
i have edited your example as folowed:
vuln.cpp:
#include <stdio.h>
#include <string.h>
int foo (char *input)
{
char buffer [10];
strcpy(buffer, input);
return (0);
}
...
[ more ]
Privacy Statement
Copyright 2010, SecurityFocus
this was a great example but it didnt work on my debian machine. - but it worked better than mine.
i have edited your example as folowed:
vuln.cpp:
#include <stdio.h>
#include <string.h>
int foo (char *input)
{
char buffer [10];
strcpy(buffer, input);
return (0);
}
...
[ more ]