[PATCH] D16572: PR23057: fix use-after-free due to local token buffer in ParseCXXAmbiguousParenExpression
Dmitry Polukhin via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 26 10:01:18 PST 2016
DmitryPolukhin added a comment.
I didn't introduce a leak because I pass ownership of the Buffer to EnterTokenStream (i.e. pass true as the last argument OwnsTokens). ASan also doesn't report a leak with my patch. Original code didn't have double free because it used call EnterTokenStream with OwnsTokens == false.
http://reviews.llvm.org/D16572
More information about the cfe-commits
mailing list