Re: [PATCH] lineedit: fix crash when icanon set with -echo

2023-04-12 Thread Denys Vlasenko
Applied, thank you. On Mon, Apr 3, 2023 at 10:53 PM Akos Somfai wrote: > > When icanon is set with -echo (e.g. ssh from an emacs shell) then > S.state will remain null but later it will be deferenced causing ash to > crash. Fix: additional check on state. > --- > libbb/lineedit.c | 4 ++-- > 1

[PATCH] lineedit: fix crash when icanon set with -echo

2023-04-03 Thread Akos Somfai
When icanon is set with -echo (e.g. ssh from an emacs shell) then S.state will remain null but later it will be deferenced causing ash to crash. Fix: additional check on state. --- libbb/lineedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbb/lineedit.c