https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116910

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, for runtime instrumentation we have
-fsanitize=address,pointer-compare,pointer-subtract which can diagnose stuff
like that.  Though, I'm afraid it won't diagnose neither the PR77964 case
(because the two different arrays is only how it is represented in C, there are
actually no arrays but symbols added by linker script, so it isn't possible to
add ASan padding in between, and the PR115498 case neither, because string
literals just go into mergeable sections and thus can't get ASan padding in
between either.

Reply via email to