]> git.sesse.net Git - vlc/commit
activex: Fix heap corrumption on Async event delivery
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Mon, 15 Mar 2010 12:26:25 +0000 (13:26 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 18 Mar 2010 10:16:03 +0000 (11:16 +0100)
commit9df2a8435a3381fe0958116ca24fae9a43272e0e
treed5bdbee85e0fd8f1c9307ee8de14e2ae42603127
parent88f536c0c03288140e87338eaceda0d5d0c6cfdf
activex: Fix heap corrumption on Async event delivery

The heap corruption occured when events returned a value. Since the events cross COM boundaries,
the values returned should be allocated in COM context too. Allocating the memory with CoMemTaskAlloc()
should be used instead of new or malloc().
projects/activex/connectioncontainer.cpp
projects/activex/main.cpp
projects/activex/plugin.cpp