From a9eca1b20d64a6de125506c299aed51bedf43a73 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 2 Oct 2013 05:19:00 +0000 Subject: io.c: keep fptr read-closed * io.c (rb_io_close_read): keep fptr in write_io to be discarded, to fix freed pointer access when it is in use by other threads, and get rid of potential memory/fd leak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cf32934e1d..8a70d3f6e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 2 14:18:56 2013 Nobuyoshi Nakada + + * io.c (rb_io_close_read): keep fptr in write_io to be discarded, to + fix freed pointer access when it is in use by other threads, and get + rid of potential memory/fd leak. + Tue Oct 1 23:44:00 2013 Charlie Somerville * vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang -- cgit v1.2.3