BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005794 [BusyBox] Other crash always 10-28-08 16:15 10-28-08 17:56
Reporter mspiegle View Status public  
Assigned To BusyBox
Priority normal Resolution open  
Status assigned   Product Version 1.12.x
Summary 0005794: 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.
Additional Information
Attached Files

- Relationships

- Notes
(0014514)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker