[llvm-commits] [PATCH] Disable an ASan-unsafe optimization with address_safety attribute

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Feb 29 23:09:35 PST 2012


Please ignore this patch. The bug is in the AddressSanitizer
instrumentation pass.

On Wed, Feb 29, 2012 at 4:28 PM, Evgeniy Stepanov
<eugeni.stepanov at gmail.com> wrote:
> Right. Thanks for noticing :)
>
> On Wed, Feb 29, 2012 at 4:27 PM, Jia Liu <proljc at gmail.com> wrote:
>> Hi Evgeniy,
>>
>> On Wed, Feb 29, 2012 at 8:15 PM, Evgeniy Stepanov
>> <eugeni.stepanov at gmail.com> wrote:
>>> Hi,
>>>
>>> please review this fix for bug 12047.
>>>
>>> One of InstCombine optimizations can replace an allocation of type T
>>> with an allocation of type S, where S has a smaller storage size, but
>>> the same allocation size. This is ok for regular builds, but
>>> incompatible with address safety analysis tools like AddressSanitizer.
>>>
>>> This patch disables this optimization in functions with address_safety
>>> attribute.
>>
>> Did you forgot patch in your mail?
>>
>>> _______________________________________________
>>> 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