Some days ago, I found out with an easy problem: make a program that generates a Segmentation Fault! The easiest way I thought was generate a simple buffer overflow and write on a place that it’s not mine!
The thing interesting on this post was that the program I made HAS NEVER FINISHED! and it’s really simple… Let you the code:
{
int i = 0;
int array[1];
while (i < 100)
{
array[i++] = 1;
printf(”%i\n”, i);
}
return 0;
}
So… Did you find out the error?
(more…)
