On 03/06/2017 03:58 PM, Jakub Jelinek wrote:
Hi!

Apparently fold_build_addr_expr doesn't make the argument addressable,
it is only made addressable during following gimplification and that is too
late here.
Yea. There's some special stuff going on here. I've never dug into the details myself -- Richi knows it better than I.



Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
trunk?

2017-03-06  Jakub Jelinek  <ja...@redhat.com>

        PR sanitizer/79897
        * ubsan.c (ubsan_encode_value): Call mark_addressable on the
        temporary.
IMHO, you've got carte blanche in the sanitizer bits.  So Ok.

jeff

Reply via email to