Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 12:19:53 -0800 (PST)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/audio/tosha/files patch-aa
Message-ID:  <200102072019.f17KJri11452@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ken         2001/02/07 12:19:53 PST

  Added files:
    audio/tosha/files    patch-aa 
  Log:
  Fix a core dump when doing 'tosha -i'.  (Maintainer timeout after about two
  months.)
  
  The problem is in resolve_extension().  strncpy() will only null-terminate
  the destination string if it has enough room, according to the given
  length.
  
  In this implementation, there will never be enough room to null-terminate
  the string, from what I can tell.  So if the memory in 'tmpstr' contains
  non-nulls, you'll get a core-dump in the subsequent strcat().



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102072019.f17KJri11452>