summaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2009-01-29 19:39:53 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2009-01-29 19:39:53 +0000
commit432122fd0e62e0bfc46e49581fc4dceeb11db717 (patch)
treec69dae1d95c62e82048325d5816530296db2816e /ChangeLog
parent90ca9dac132dc396e0f064ff01556740ca09e2b0 (diff)
downloadpygobject-432122fd0e62e0bfc46e49581fc4dceeb11db717.tar.gz
pygobject-432122fd0e62e0bfc46e49581fc4dceeb11db717.tar.xz
pygobject-432122fd0e62e0bfc46e49581fc4dceeb11db717.zip
Bug 567792 – gio.InputStream.read_async can cause memory corruption
2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net> 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
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog19
1 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c3f6f16..f6b7062 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net>
+
+ 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 <danielk@openismus.com>
* codegen/docextract_to_xml.py (escape_text): Do not escape the