[Bug 233343] [libedit] bind command reads out of bounds

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 8 06:11:25 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233343

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

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

--- Comment #6 from Yuichiro NAITO <naito.yuichiro at 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.

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


More information about the freebsd-bugs mailing list