[PATCH v2] Cygwin: console: Fix segfault on shared_console_info access.
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Feb 24 18:50:00 GMT 2020
On Feb 25 01:12, Takashi Yano wrote:
> - Accessing shared_console_info before initialization causes access
> violation because it is a NULL pointer. The cause of the problem
> reported in https://cygwin.com/ml/cygwin/2020-02/msg00197.html is
> this NULL pointer access in request_xterm_mode_output() when it is
> called from close(). This patch makes sure that shared_console_info
> is not NULL before calling request_xterm_mode_output().
> ---
> winsup/cygwin/fhandler_console.cc | 23 +++++++++++------------
> 1 file changed, 11 insertions(+), 12 deletions(-)
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20200224/9e28a98a/attachment.sig>
More information about the Cygwin-patches
mailing list