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

bugs at busybox.net bugs at busybox.net
Wed Nov 12 22:24:02 UTC 2008


The following issue has been CLOSED 
====================================================================== 
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:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             10-28-2008 16:15 PDT
Last Modified:              11-12-2008 14:24 PST
====================================================================== 
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.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 10-28-08 17:56  
---------------------------------------------------------------------- 
Please try
http://busybox.net/downloads/fixes-1.12.1/busybox-1.12.1-vi.patch 

---------------------------------------------------------------------- 
 vda - 11-12-08 14:24  
---------------------------------------------------------------------- 
Fixed in svn and added to hotfixes. 

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         
10-28-08 17:56  vda            Note Added: 0014514                          
11-12-08 14:24  vda            Status                   assigned => closed  
11-12-08 14:24  vda            Note Added: 0015654                          
======================================================================




More information about the busybox-cvs mailing list