Files
newlib/winsup/cygwin
Corinna Vinschen 2bbe8697d8 Cygwin: fix memory corruption/SEGV if certain socket functions fail
Regression introduced with 2.11.0:

The failure paths in socket, socketpair and accept4 functions and
methods accidentally release *unused* cygheap_fdmanip objects.  The
subsequently called dtable::release method was designed to be called for
*used* cygheap_fdmanip objects only.  Using them on unused objects leads
to NULL pointer member dereferencing.

Worse, the inet/local accept4 methods only release the cygheap_fdmanip
object but neglect to delete the just created fhandler_socket_* object.

Fix this by removing the erroneous release calls in the aforementioned
failure paths and delete the fhandler_socket_* object in accept4 instead.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2018-10-29 16:32:48 +01:00
..
2018-10-10 17:49:53 +02:00
2016-11-24 16:09:31 +01:00
2013-04-30 23:43:08 +00:00
2012-11-23 13:22:47 +00:00
2018-08-07 14:51:10 +02:00
2016-08-23 15:07:42 +01:00
2016-06-25 00:43:01 +02:00
2014-04-26 17:38:22 +00:00
2018-02-20 17:59:53 +01:00
2015-03-03 12:58:34 +00:00
2016-06-24 23:32:39 +02:00
2018-03-06 18:23:23 +01:00
2015-11-18 19:09:47 +01:00
2017-03-27 22:03:58 +01:00
2018-10-10 17:49:53 +02:00
2018-08-07 14:51:10 +02:00
2018-08-07 14:51:10 +02:00
2015-08-17 11:05:43 +02:00
2013-04-23 09:44:36 +00:00
2016-06-23 21:30:15 +02:00
2018-02-07 13:07:44 +01:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2018-08-07 14:51:10 +02:00
2017-03-27 22:03:58 +01:00
2013-04-23 09:44:36 +00:00
2016-06-23 16:56:41 +02:00
2017-04-24 17:14:03 +02:00