]> git.ipfire.org Git - thirdparty/gcc.git/commit
asan: Handle poly-int sizes in ASAN_MARK [PR97696]
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 5 Mar 2024 19:48:25 +0000 (19:48 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 5 Mar 2024 19:48:25 +0000 (19:48 +0000)
commitfca6f6fddb22b8665e840f455a7d0318d4575227
treee805561f832aee10043c1b5489fec0d4765af7c1
parent8776468d9e57ace5f832c1368243a6dbce9984d5
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.
gcc/asan.cc
gcc/testsuite/gcc.target/aarch64/sve/pr97696.c [new file with mode: 0644]