*** buffer overflow detected ***: yabasic terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x7f73cff6a5f7] /lib/libc.so.6[0x7f73cff695a0] /lib/libc.so.6[0x7f73cff68457] yabasic[0x403920] yabasic[0x41c56f] yabasic[0x407097]
0x000000000040391b <dotify+139>: callq 0x403058 <__strcat_chk@plt>
from yyparse. Looks like:
char * dotify (char *name, int addfun) /* add library name, if not already present */ { static char buff[200]; if (!strchr (name, '.')) { strcpy (buff, currlib->s); strcat (buff, "."); strcat (buff, name); ...
*** buffer overflow detected ***: yabasic terminated so.6(__ fortify_ fail+0x37) [0x7f73cff6a5f7 ] so.6[0x7f73cff6 95a0] so.6[0x7f73cff6 8457]
======= Backtrace: =========
/lib/libc.
/lib/libc.
/lib/libc.
yabasic[0x403920]
yabasic[0x41c56f]
yabasic[0x407097]
0x000000000040391b <dotify+139>: callq 0x403058 <__strcat_chk@plt>
from yyparse. Looks like:
char *
dotify (char *name, int addfun) /* add library name, if not already present */
{
static char buff[200];
if (!strchr (name, '.'))
{
strcpy (buff, currlib->s);
strcat (buff, ".");
strcat (buff, name);
...