Infinite loop in vim mode/file with "command '...'"

Bug #736367 reported by Daniel Hahler on 2011-03-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
exuberant-ctags (Ubuntu)
Colin Watson

Bug Description

Binary package hint: exuberant-ctags

There is a problem with ctags, when command is used with a (quoted) string argument, which causes an infinite loop.

This happens with 5.8-3ubuntu1 and 5.9~svn20110310-0ubuntu1 (from my PPA).

1. Create a file test.vim:
    echo "command 'foo'" > test.vim
2. Run ctags against it:
    ctags test.vim
3. If the bug is present, it will loop forever.

Colin Watson (cjwatson) wrote :

Fixed for my next Debian upload, although note that this is not a valid name for a command according to the Vim documentation.

Changed in exuberant-ctags (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
importance: Undecided → Low
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package exuberant-ctags - 1:5.9~svn20110310-1

exuberant-ctags (1:5.9~svn20110310-1) unstable; urgency=low

  * New upstream release snapshot (thanks, Daniel Hahler; LP: #732860).
    - Fix crash with comments inside strings in OCaml (LP: #554898).
  * Drop accepted patches:
    - debian/patches/make-match-loop.patch
    - debian/patches/php-ignore-keywords-in-comments.patch
  * For Python, disable -i so imports are not tagged by default (thanks,
    Barry Warsaw; LP: #618979).
  * Upstream uses AC_SYS_LARGEFILE now, so drop explicit
    -D_FILE_OFFSET_BITS=64 in debian/rules.
  * Fix infinite loop parsing vim commands, when a non-alphanumeric
    character other than whitespace or '-' is found before the first
    alphanumeric character after 'command' (LP: #736367).

exuberant-ctags (1:5.8-4) unstable; urgency=low

  * Apply patch from Ben Spencer to use memmove rather than strcpy on
    overlapping strings (closes: #594185).
 -- Colin Watson <email address hidden> Fri, 18 Mar 2011 10:27:01 +0000

Changed in exuberant-ctags (Ubuntu):
status: Fix Committed → Fix Released
Daniel Hahler (blueyed) wrote :

> note that this is not a valid name for a command according to the Vim documentation

It is being used in the Ruby part of the script, and e.g. 'command "redraw"' appears to be used to call the Vim command "redraw".

Daniel Hahler (blueyed) wrote :

Tracked for fishman-ctags in

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.