[PATCH] D30283: [ubsan] Reduce alignment checking of C++ object pointers
Eli Friedman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 21 15:40:23 PDT 2017
efriedma added a comment.
It's possible to misalign a global definition by misaligning its section with a linker script... but we can probably ignore that possibility.
It's very easy to misalign global declaration, though; for example:
a.c:
extern int a[];
int f(int x) { return a[x]; }
b.c:
char a[] = "asdfzxcv";
https://reviews.llvm.org/D30283
More information about the cfe-commits
mailing list