[cfe-dev] [RFC] automatic variable initialization

Kostya Serebryany via cfe-dev cfe-dev at lists.llvm.org
Tue Nov 27 11:52:19 PST 2018


On Tue, Nov 27, 2018 at 10:43 AM Sean McBride <sean at rogue-research.com>
wrote:

> On Tue, 27 Nov 2018 10:19:03 -0800, Kostya Serebryany via cfe-dev said:
>
> >One more data point: among the bugs found by MSAN in Chrome over the past
> >few years 449 were uninitialized heap and 295 were uninitialized stack.
> >So, the proposed functionality would prevent ~40% (i.e. quite a bit!) of
> >all UUMs in software like Chrome.
>
> I just lurk here, but I think the proposed functionality would be greatly
> appreciated by C/C++/Obj-C developers on macOS, where MemorySanitizer is
> not supported and valgrind can't even launch TextEdit.  If I'm not
> mistaken, it would be the *only* tool on macOS to catch UUMs.
>

It won't catch anything -- but it will prevent the stack UUMs from hurting
you in production.


>
> Cheers,
>
> Sean
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181127/2e336888/attachment.html>


More information about the cfe-dev mailing list