Skip to content

Commit 2b2d15d

Browse files
[3.14] Disable UBSan alignment check in configure's aligned-access test (GH-161012) (#161020)
(cherry picked from commit 90dc8bd) Co-authored-by: Stan Ulbrych <[email protected]>
1 parent b78dacc commit 2b2d15d

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎configure‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4015,6 +4015,11 @@ esac
40154015
# check for systems that require aligned memory access
40164016
AC_CACHE_CHECK([aligned memory access is required], [ac_cv_aligned_required],
40174017
[AC_RUN_IFELSE([AC_LANG_SOURCE([[
4018+
#ifdef __has_attribute
4019+
# if __has_attribute(no_sanitize)
4020+
__attribute__((no_sanitize("alignment")))
4021+
# endif
4022+
#endif
40184023
int main(void)
40194024
{
40204025
char s[16];

0 commit comments

Comments
 (0)