]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid use-after-free on streams, due to message callbacks
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 31 Aug 2011 16:01:01 +0000 (17:01 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 1 Sep 2011 09:52:35 +0000 (10:52 +0100)
commit1b72ad2eaa0c84b2cd56c9e86e614f79a643a0b3
tree24ca71f56534e1e0123eb33294cc84a061c327f6
parentb6263c18013e99bab1938d112fc927f948df3eef
Avoid use-after-free on streams, due to message callbacks

When sending outbound stream RPC messages, a callback is
used to re-enable stream data transmission. If the stream
aborts while one of these messages is outstanding, the
stream may have been free'd by the time it is invoked. This
results in a use-after-free error

* daemon/stream.c: Ref-count streams to avoid use-after-free
daemon/stream.c