]> git.ipfire.org Git - thirdparty/gcc.git/commit
asan: Handle poly-int sizes in ASAN_MARK [PR97696]
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 27 Mar 2024 17:38:09 +0000 (17:38 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 27 Mar 2024 17:38:09 +0000 (17:38 +0000)
commit51e1629bc11f0ae4b8050712b26521036ed360aa
treeef93487a1a53d96dce774a56508ff10001cf2b17
parentfdfd3949ec1f5d1075491bb4c14e2a95930d881d
asan: Handle poly-int sizes in ASAN_MARK [PR97696]

This patch makes the expansion of IFN_ASAN_MARK let through
poly-int-sized objects.  The expansion itself was already generic
enough, but the tests for the fast path were too strict.

gcc/
PR sanitizer/97696
* asan.cc (asan_expand_mark_ifn): Allow the length to be a poly_int.

gcc/testsuite/
PR sanitizer/97696
* gcc.target/aarch64/sve/pr97696.c: New test.

(cherry picked from commit fca6f6fddb22b8665e840f455a7d0318d4575227)
gcc/asan.cc
gcc/testsuite/gcc.target/aarch64/sve/pr97696.c [new file with mode: 0644]