]> 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 15:30:19 +0000 (15:30 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 27 Mar 2024 15:30:19 +0000 (15:30 +0000)
commit86b80b049167d28a9ef43aebdfbb80ae5deb0888
tree2595456e53ef48ae2ce315b87d4fec1846051fb4
parent18d3573f8164273b859306b143e3cd72cbd0f913
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]