|
From: | Jan Djärv |
Subject: | bug#4992: Invalid use of strcpy() in etags |
Date: | Mon, 23 Nov 2009 10:51:42 +0100 |
User-agent: | Thunderbird 2.0.0.23 (X11/20090817) |
Tobias Ringström skrev:
The function absolute_filename() lib-src/etags.c has two invalid calls to strcpy() with overlapping arguments. It's undefined C that often happens to work, but breaks very badly for at least gcc 4.4.2 and glibc 2.11 on x86_64, which is default for Fedora 12.The attached patch replaces the bogus strcpy() calls with calls to memmove().
Checked in, thanks. Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |