]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: avoid crashes when cloning a client
authorKen Brown <kbrown@cornell.edu>
Mon, 25 Mar 2019 23:06:09 +0000 (23:06 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 27 Mar 2019 13:01:45 +0000 (14:01 +0100)
commit40db74128ad2ed2431cd67f1c14ab50d4859d4df
tree558e5036e084dc6e8b8308b1898f81e772f1adb7
parentee394c311e493ba8e23516a2ba72cadf3d9eaf9a
Cygwin: FIFO: avoid crashes when cloning a client

fhandler_fifo::clone called fhandler_base::clone on each client
fhandler.  But those fhandlers are actually fhandler_fifo objects, so
when fhandler_base::clone calls copyto, it's actually
fhandler_fifo::copyto that gets called.  This can lead to mysterious
crashes.

Fix this by simply calling clone (which translates to
fhandler_fifo::clone) on each client fhandler.
winsup/cygwin/fhandler.h
This page took 0.03104 seconds and 5 git commands to generate.