[llvm] r303311 - Attempt to pacify ASan and UBSan reports in CrashRecovery tests

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 11:07:18 PDT 2017


On Wed, May 24, 2017 at 11:04 AM, Vitaly Buka <vitalybuka at google.com> wrote:

> I just noticed that the patch contained?
> -static void nullDeref() { *(volatile int *)nullptr = 0; }
> +static void nullDeref() { *(volatile int *)0x10 = 0; }
>
> Why this was needed? Should I put it back?
>

Yes, that is needed to avoid ubsan complaining about dereferencing null.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170524/647b60cf/attachment.html>


More information about the llvm-commits mailing list