Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Crash with completion from too long files #1600

@ZyX-I

Description

@ZyX-I

Given that the second opened file exists and contains text TEST TXT (two words starting with T) the following script is enough to crash:

 vim --cmd 'set columns=5000 noswapfile' -u NONE -i NONE -N /tmp/b $PWD/"$(perl -e "print ((('/'.('d' x 255)) x 4).'/'.('a' x 255))")" -s <(<<< $'iT\C-n')

Note that bash supports neither <<< nor \C-n in $'', need echo and actual value. Bug was found by coverity in Neovim (CID 56813), at the end of ins_compl_next function (where it copies compl_shown_match->cp_fname + i into IObuff). It is necessary that columns value is large.

Checked with vim 8.0.512.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions