Comment 2 for bug 424602

Revision history for this message
Kees Cook (kees) wrote :

*** 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);
...