Wind River Support Network

HomeDefectsLIN6-4385
Fixed

LIN6-4385 : wrlinux-4.3 busybox: segfault in lineedit VI mode

Created: Mar 12, 2013    Updated: Dec 3, 2018
Resolved Date: Jan 22, 2014
Previous ID: LIN4-19821
Found In Version: 6.0
Fix Version: 6.0.0.3
Severity: Severe
Applicable for: Wind River Linux 6
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