[cfe-commits] [patch] Obj-C rewriter uses deallocated string
Douglas Gregor
dgregor at apple.com
Wed Apr 20 06:40:50 PDT 2011
On Apr 20, 2011, at 3:51 AM, Eric Niebler wrote:
> The new Obj-C rewriter is failing to flush a raw_string_ostream before
> using its results. Due to the destruction order of locals, it's causing
> a deallocated string to be used, leading to junk characters being
> written out. The problem was found on Windows.
>
> The attached patch corrects the problem by adding the missing calls to
> flush.
Thanks! Committed in r129849.
- Doug
More information about the cfe-commits
mailing list