Created attachment 359061 [details]
Input to reproduce the infinite loop
Description of problem:
With the attached input files ctags jumps into infinite loop or gets segment fault.
Version-Release number of selected component (if applicable):
For reproducing infinite loop, use hgcommand-infinite-loop.vim as argument for ctags.
For reproduce segment fault, use hgcommand-segment-fault.vim as argument for ctags.
Steps to Reproduce:
* infinite loop
* segment fault
Never returned to shell or segment fault.
Returned to shell successfully.
See the attached patch.
Created attachment 359062 [details]
Input to reproduce the segment fault
Created attachment 359063 [details]
A patch to avoid the infinite loop and the segment fault.
I already built the new ctags-5.8 including this fix in rawhide. It will also be built for F11/F10 update soon.
Thanks for the patch!
ctags-5.8-1.fc11 has been submitted as an update for Fedora 11.
ctags-5.8-1.fc10 has been submitted as an update for Fedora 10.
ctags-5.8-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
ctags-5.8-1.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.