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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jan 16 22:23:20 UTC 2019


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

Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs at FreeBSD.org            |jilles at FreeBSD.org
                 CC|                            |bugs at FreeBSD.org

--- Comment #12 from Jilles Tjoelker <jilles at FreeBSD.org> ---
As for the sh(1) part, it looks like it should work but I don't really like
that it's a workaround for a workaround: sh supplies its standard error as
standard output to libedit, so that prompts are written to standard error as
required by POSIX. The bind builtin would then temporarily undo this again.

However, something is definitely required to prevent bind's output from staying
in a stdio buffer indefinitely. It is also useful to report write errors like
other builtins can.

I will think about it for a while.

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


More information about the freebsd-bugs mailing list