[cfe-commits] [patch] Obj-C rewriter uses deallocated string

jahanian fjahanian at apple.com
Wed Apr 20 08:50:33 PDT 2011


Thank you. 

- Fariborz

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.
> 
> -- 
> Eric Niebler
> BoostPro Computing
> http://www.boostpro.com
> <objcrewriter.patch>_______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list