Bug#701959: segfault in vi applet (data loss possible)
02.03.2013 15:57, Cyril Brulebois wrote:
> Michael Tokarev <mjt@tls.msk.ru> (01/03/2013):
>> Package: busybox
>> Version: 1:1.20.0-7
>> Severity: important
>> Tags: upstream patch pending
>>
>> `P' and `p' commands in vi ("paste") results in a segfault if
>> nothing has been put into paste buffer. This may trivially result
>> in a loss of all changes in a file being edited. It is fixed in
>> upstream commit 46031da862a60422f80050a905cea0b67026b021 (a one-line
>> change).
>
> FTR that's not data loss.
Well, it is loss of editing, since busybox vi, unlike, say, vim,
does not create intermediate save files. Indeed, that's not a
loss of original file, just the editing changes in current session.
But the issue is entirely different, it isn't in vi applet to
start with, as I stated in a followup email, -- I misinterpreted
it initially.
Thanks,
/mjt
Reply to: