]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: console: Fix segfault on shared_console_info access.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 24 Feb 2020 16:12:16 +0000 (01:12 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Feb 2020 18:41:16 +0000 (19:41 +0100)
commit17528b9d2c3147f5de0f604fc2702b2e0010c533
tree70ef05e36ceb590b65817189abc5f6d27b1162a5
parent86f9ce97bc4dd8dd14757157ae944c2c678d62a9
Cygwin: console: Fix segfault on shared_console_info access.

- 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
winsup/cygwin/release/3.1.5
This page took 0.030631 seconds and 5 git commands to generate.