[PATCH] MCStreamer for x86_64: W64UnwindInfos must be cleared in reset()

Charles Davis cdavis5x at gmail.com
Tue May 7 14:15:00 PDT 2013


On May 6, 2013, at 11:54 PM, Kai Nacke wrote:

> Hi!
> 
> Just noticed the following:
> MCStreamer::reset() deletes all created W64UnwindInfos but does not clear the vector. If you ever put something into W64UnwindInfos and class reset then you got a double-free in the destructor.
> 
> Simple fix is to call clear() in reset(). No functional change intended.
> 
> Please review. Thanks.
Thanks, r181363.

Chip

> 
> Regards
> Kai
> <mcstreamer.diff>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list