Tuesday, June 15, 2010

c++ ** stack smashing detected ***

http://ubuntuforums.org/archive/index.php/t-352672.html

changed

char wordFromFile[36];

to

char wordFromFile[256];

to make it work

I think the stack smashing was detected only after the function returned, not when the stack was actually getting smashed.

No comments:

Post a Comment