I wasn't sure if this bug was major enough to warrant a sendbug. Seems like
a minor error handling issue.

If you start vi and issue the following command:

  :e +file

then vi will end up trying a bad memcpy and aborting. Given that this
command is silly I'd expect an error message or just a silent ignore.

The command as given was intended to open a file named "+file". I should
have typed ":e ./+file" since +cmds proceed the filename argument in an
:edit command. I believe what ended up happening is that I told vi to open
an unnamed file followed by executing the Ex command to open a file but
without passing it the required filename.

Despite it being a silly thing to type I feel like it probably shouldn't
cause vi to core dump. But it is pretty minor so posting here.

Michael

Reply via email to