diff options
author | Kenneth D. Merry <ken@FreeBSD.org> | 2001-02-07 20:19:53 +0000 |
---|---|---|
committer | Kenneth D. Merry <ken@FreeBSD.org> | 2001-02-07 20:19:53 +0000 |
commit | 664211684aa33f52f4ebd635ad1e3a2e380f6248 (patch) | |
tree | 039474fd8ba43eeacaf39550f48ec45560627bbf /misc | |
parent | Add ruby-libglade, a wrapper library of libglade for Ruby. (diff) |
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().
Notes
Notes:
svn path=/head/; revision=38076
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions