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

bugs at busybox.net bugs at busybox.net
Wed Oct 29 00:56:46 UTC 2008


A NOTE has been added to this issue. 
====================================================================== 
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 17:56 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.
====================================================================== 

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

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                          
======================================================================




More information about the busybox-cvs mailing list