shell32: Set pointer to NULL after free to avoid double free

Michael Mc Donnell michael at mcdonnell.dk
Thu Oct 20 10:49:08 CDT 2011


UnixSubFolderIterator_IEnumIDList_Next currently changes value
of the pointer passed in and leaves garbage in it if it fails. It
should instead either not touch the value or NULL it. Tests are
needed to show which one is the correct behavior. This patch sets
the pointer to NULL if the function fails, and thereby fixes the
double free bug 28737.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-shell32-Set-pointer-to-NULL-after-free-to-avoid-doub.patch
Type: application/octet-stream
Size: 1285 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111020/5d6172a2/attachment.obj>


More information about the wine-patches mailing list