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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 11:32:49 PDT 2017


Thanks, restored.

On Wed, May 24, 2017 at 11:07 AM, Reid Kleckner <rnk at google.com> wrote:

> 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/c8f0c6de/attachment.html>


More information about the llvm-commits mailing list