Bug 399 - Platform's vi utility crashes if doing a search (/) with no value
Summary: Platform's vi utility crashes if doing a search (/) with no value
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.12.x
Hardware: Other Linux
: P2 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords: FIXME
Depends on:
Blocks:
 
Reported: 2009-06-15 09:56 UTC by Joe Xie
Modified: 2009-07-11 22:27 UTC (History)
2 users (show)

See Also:
Host: i686
Target: i686
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Xie 2009-06-15 09:56:20 UTC
If I use vi, then do search with '/', but don't enter a string, I get a segfault. This does not put the dut in a bad state.

This could be a problem if a user is making changes to a file without saving, hits this bug and loses there data.
Comment 1 Bernhard Reutner-Fischer 2009-06-15 10:06:14 UTC
What platform is this? Please fill in proper host, target and build triplets.
How did you configure vi? Paste your
$ grep _VI .config

thanks,
Comment 2 Denys Vlasenko 2009-06-15 10:35:24 UTC
Seems to be fixed in last release.

If you want the fix to be added to next 1.12.x stable release, backport the fix to 1.12.x and follow these instructions:

http://busybox.net/fix.html
Comment 3 Joe Xie 2009-06-16 02:23:34 UTC
I found this bug in busybox 1.10.2, but the lowest version option is 1.12.x so I selected 1.12.x in the "Version" field.
Comment 4 Denys Vlasenko 2009-07-11 22:27:39 UTC
Closing since it is fixed in released stable versions.