]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Add missing pinfo check in transfer_input().
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Mon, 14 Aug 2023 10:48:12 +0000 (19:48 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Tue, 15 Aug 2023 23:34:25 +0000 (08:34 +0900)
commitefba30dd1d4cf3db6df7f7bc7ee13775c577f1a1
treea587cfafc9c9eee0b17514134f20ae92eaee6f68
parentd2354ee412391111f3cb7408a10d9a6af72fe048
Cygwin: pty: Add missing pinfo check in transfer_input().

The commit 10d083c745dd has a bug that lacks a check for pinfo pointer
value for master_pid. This causes segmentation fault if the process
whose pid is master_pid no longer exists. This patch fixes the issue.

Fixes: 10d083c745dd ("Cygwin: pty: Inherit typeahead data between two input pipes.")
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
winsup/cygwin/fhandler/pty.cc
This page took 0.029441 seconds and 5 git commands to generate.