Created attachment 376898 [details] Patch for the problem described, replacing strcpy with memmove. Description of problem: This is a bug against etags.emacs which is packaged in emacs-common, but there is no separate component called emacs-common. This same bug exists in etags.xemacs, packaged in xemacs-common. When etags is run with filenames starting with "./", it normalizes them to start without "./", but does so incorrectly, messing up the result. Version-Release number of selected component (if applicable): emacs-common-23.1-13.fc12.x86_64 xemacs-common-21.5.29-8.fc12.x86_64 How reproducible: 100% Steps to Reproduce: 1. Create a file with a C function and path e.g. src/gdk/gdk_atoms.c 2. Run /usr/bin/etags.emacs ./src/gdk/gdk_atoms.c 3. Observe the filename in TAGS Actual results: The filename recorded in the TAGS file is src/gdk/gdk_otoms.c (note "o" after underscore). Expected results: The filename should be src/gdk/gdk_atoms.c Additional info: The problem is a call to strcpy on overlapping buffers. In Fedora 11 and before that seems to have worked, but in Fedora 12 it often does not work, at least not for slightly longer filenames. The attached patch should also work for etags.xemacs in xemacs-common, except for differing line numbers.
Also see bug 545399 for the XEmacs version of the bug.
I cannot reproduce it on 32-bit Fedora, but the usage of strcpy in the code is clearly wrong. Moreover, this bug is already fixed in the upstream CVS.
http://koji.fedoraproject.org/koji/taskinfo?taskID=1863033 The fix will be a part of next update. Thanks for nicely detailed bug report.
emacs-23.1-11.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/emacs-23.1-11.fc11
emacs-23.1-11.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update emacs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-11.fc11
emacs-23.1-13.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/emacs-23.1-13.fc11
emacs-23.1-13.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update emacs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/emacs-23.1-13.fc11
emacs-23.1-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.