Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2019 06:11:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 233343] [libedit] bind command reads out of bounds
Message-ID:  <bug-233343-227-fDxHoppOZn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-233343-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-233343-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233343

Yuichiro NAITO <naito.yuichiro@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |naito.yuichiro@gmail.com

--- Comment #6 from Yuichiro NAITO <naito.yuichiro@gmail.com> ---
Hi,
I wrote a a patch that fixes the problem mentioned in comment #3.
Just fixed to check the end of argv list by argc counts.
The attached `libedit.patch` is a patch file for this.

And I found another problem that built in 'bind' never redirects to a pipe
and/or a file.
The `bind` command always outputs messages to the terminal.

This is because built in `bind` calls el_parse(3) and its outout file
descriptor never be changed by pipe and/or redirects.

The attached `sh.patch` fixes this problem.

Could you see my patches and try them?
I checked my patches work on FreeBSD-12.0R.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233343-227-fDxHoppOZn>