diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-01-27 11:36:00 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-01-27 11:38:02 -0800 |
commit | 69822de4243b40e1da10046e1c12e79703ea9a7d (patch) | |
tree | 2601e903bafa9e2f3b46d918fad299bb13d87d49 /lib/strncat.c | |
parent | f693539b7719ac1bd8655a5c8800c5112515f147 (diff) | |
download | gnulib-69822de4243b40e1da10046e1c12e79703ea9a7d.tar.gz |
alignalloc: work around AddressSanitizer bug
* doc/posix-functions/aligned_alloc.texi (aligned_alloc):
Mention AddressSanitizer bug.
* lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC):
Define to 0 if AddressSanitizer is in use.
* tests/test-alignalloc.c (test_alignalloc): New function,
which tests for non-aligned sizes too.
(main): Use it. Don’t bother checking for alignments
greater than 16 MiB, as this flummoxes AddressSanitizer
and there seems little point to testing them.
Diffstat (limited to 'lib/strncat.c')
0 files changed, 0 insertions, 0 deletions