[cfe-commits] [PATCH] Fix undefined behavior in DarwinHostInfo
Benjamin Kramer
benny.kra at googlemail.com
Sat May 23 11:02:23 PDT 2009
The dtor of the temporary string returned by getOSName() will be
immediately executed after Release is set so Release will point to
already free'd memory.
Found by valgrind.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-hostinfo-ub.patch
Type: application/octet-stream
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090523/c195a26a/attachment.obj>
-------------- next part --------------
More information about the cfe-commits
mailing list