Wind River Support Network

HomeDefectsLIN5-9302
Fixed

LIN5-9302 : wrlinux-4.3 busybox: segfault in lineedit VI mode

Created: Mar 12, 2013    Updated: Dec 19, 2017
Resolved Date: Jan 23, 2014
Previous ID: LIN4-19823
Found In Version: 5.0
Fix Version: 5.0.1.12
Severity: Severe
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Problem Description
====================== 
`P' and `p' commands in lineedit vi mode results in a segfault if
nothing has been put into paste buffer.

Expected Behavior
====================== 
busybox doesn't crash

Actual results
====================== 
get a segfault, the backtrace says:
    
Program terminated with signal 11, Segmentation fault.
#0  0x00007f1994f1cd67 in *__GI_memmove (dest=0x54c, src=0xd66790, len=1) at memmove.c:79

Steps to Reproduce

1 configure with --enable-board=any --enable-rootfs=glibc_small --enable-kernel=standard
2 enable FEATURE_EDITING_VI in busybox 
3 deploy it on target
4 ash;set -o vi
5 enter control mode(ESC), and input 'p' or 'P'

Other Downloads


Live chat
Online