[Bug sanitizer/63802] UBSan doesn't catch misaligned access if address is 16-bytes (or more) aligned

ygribov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 18 07:37:00 GMT 2014


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

--- Comment #4 from ygribov at gcc dot gnu.org ---
Author: ygribov
Date: Tue Nov 18 07:37:17 2014
New Revision: 217689

URL: https://gcc.gnu.org/viewcvs?rev=217689&root=gcc&view=rev
Log:
2014-11-18  Yury Gribov  <y.gribov@samsung.com>

    PR sanitizer/63802

gcc/
    * stor-layout.c (min_align_of_type): Respect user alignment
    more.

gcc/testsuite/
    * c-c++-common/ubsan/pr63802.c: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr63802.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/stor-layout.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list