[PATCH 4/4] msvcrt: Destroy exception object when frame storing it is unwinded

Piotr Caban piotr at codeweavers.com
Tue Mar 15 07:41:20 CDT 2016


Thrown object was incorrectly freed in following situation:
try {
     throw obj;
} catch(object &obj) {
     try {
         throw 1;
     } catch(...) {}

     //use object here
}

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
  dlls/msvcrt/except_i386.c | 27 ++++++++++-----------------
  1 file changed, 10 insertions(+), 17 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-msvcrt-Destroy-exception-object-when-frame-storing-it-.txt
Type: text/x-patch
Size: 3446 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160315/61885824/attachment.bin>


More information about the wine-patches mailing list