[BusyBox 0005794]: vi on busybox 1.12.1 has a null pointer dereference

bugs at busybox.net bugs at busybox.net
Tue Oct 28 23:15:13 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=5794 
====================================================================== 
Reported By:                mspiegle
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   5794
Category:                   Other
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             10-28-2008 16:15 PDT
Last Modified:              10-28-2008 16:15 PDT
====================================================================== 
Summary:                    vi on busybox 1.12.1 has a null pointer dereference
Description: 
last_search_pattern in vi.c doesn't get initialized to anything, yet the
code under FEATURE_VI_SEARCH attempts to use it without checking.

Simply starting vi and hitting 'N' can trigger it.  Also, doing an empty
search (newline only) also triggers it.

If I set last_search_pattern to "" in main, it fixes it.  I'm not sure if
that's an appropriate fix though.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-28-08 16:15  mspiegle       New Issue                                    
10-28-08 16:15  mspiegle       Status                   new => assigned     
10-28-08 16:15  mspiegle       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list