Commits


Rossi Sun authored and GitHub committed dcdf4e6953b
GH-41460: [C++] Use ASAN to poison temp vector stack memory (#41695) ### Rationale for this change See #41460. And reduce the overhead of current manual poisoning (filling the entire stack space with `0xFF`s) that happens even in release mode. ### What changes are included in this PR? Use ASAN API to replace the current manual poisoning of the temp vector stack memory. ### Are these changes tested? Wanted to add cases to assert that ASAN poison/unpoison is functioning. However I found it too tricky to catch an ASAN error because ASAN directly uses signals that are hard to interoperate in C++/gtest. So I just manually checked poisoning is working in my local, e.g. by intentionally not unpoisoning the allocated buffer and seeing ASAN unhappy. Just leveraging existing cases that use temp stack such as acero tests, which should cover this change well. ### Are there any user-facing changes? None. * GitHub Issue: #41460 Authored-by: Ruoxi Sun <zanmato1984@gmail.com> Signed-off-by: Felipe Oliveira Carvalho <felipekde@gmail.com>