[Bug sanitizer/63802] UBSan doesn't catch misaligned access if address is 16-bytes (or more) aligned
y.gribov at samsung dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 13 16:19:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63802
Yury Gribov <y.gribov at samsung dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |y.gribov at samsung dot com
--- Comment #1 from Yury Gribov <y.gribov at samsung dot com> ---
Hm, it looks like UBSan uses min_align_of_type to caclulate alignment of
access. This is limited by BIGGEST_ALIGNMENT which is 16 bytes on x86. Any
particular reason we are not using TYPE_ALIGN_UNIT? Being unable to verify user
alignments makes this check much less useful.
More information about the Gcc-bugs
mailing list