[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crash in rl_prep_terminal() without rl_outstream
From: |
Chet Ramey |
Subject: |
Re: crash in rl_prep_terminal() without rl_outstream |
Date: |
Mon, 16 Nov 2020 09:38:20 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 |
On 11/16/20 3:19 AM, Nick Black wrote:
readline 6.2 supplied a default stdin for rl_instream if the
latter was NULL at the time rl_prep_terminal() was called. It
does not appear that similar protective measures have been
applied to rl_outstream. This leads to a crash under certain
circumstances.
Readline provides defaults for rl_instream and rl_outstream the first time
it's called. These are in place before the first time rl_prep_terminal is
called. If an application using readline decides to change the file pointer
assigned to either of these variables, readline allows it.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/