From 432122fd0e62e0bfc46e49581fc4dceeb11db717 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Thu, 29 Jan 2009 19:39:53 +0000 Subject: Bug 567792 – gio.InputStream.read_async can cause memory corruption MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-29 Paul Pogonyshev Bug 567792 – gio.InputStream.read_async can cause memory corruption * gio/gio.override (py_decref_callback): Remove (unused now). (pygio_notify_allocate_buffer, pygio_notify_attach_to_result) (pygio_notify_get_attached): New functions. (async_result_callback_marshal): Attach to the result object if asked and then don't free self. Fix reference leak (spotted by Gustavo). * gio/ginputstream.override (async_result_callback_marshal_read): Remove. Use new attachment functionality in async_result_callback_marshal() instead. (_wrap_g_input_stream_read_async): Use the new functions (also those mentioned in the cleanup log below). (_wrap_g_input_stream_read_finish): Use the new functions. svn path=/trunk/; revision=999 --- ChangeLog | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index c3f6f16..f6b7062 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2009-01-29 Paul Pogonyshev + + Bug 567792 – gio.InputStream.read_async can cause memory + corruption + + * gio/gio.override (py_decref_callback): Remove (unused now). + (pygio_notify_allocate_buffer, pygio_notify_attach_to_result) + (pygio_notify_get_attached): New functions. + (async_result_callback_marshal): Attach to the result object if + asked and then don't free self. Fix reference leak (spotted by + Gustavo). + + * gio/ginputstream.override (async_result_callback_marshal_read): + Remove. Use new attachment functionality in + async_result_callback_marshal() instead. + (_wrap_g_input_stream_read_async): Use the new functions (also + those mentioned in the cleanup log below). + (_wrap_g_input_stream_read_finish): Use the new functions. + 2009-01-27 Daniel Elstner * codegen/docextract_to_xml.py (escape_text): Do not escape the -- cgit