[ASan][JSON] Unpoison memory before its reuse (#79065)
authorTacet <advenam.tacet@trailofbits.com>
Tue, 23 Jan 2024 18:16:53 +0000 (19:16 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Jan 2024 18:16:53 +0000 (19:16 +0100)
commitc416b2efe89c11db593fe8041c366e0cb63d4eeb
treea52cf72be69fb089cb9bc90cb9f1e7605c29b62a
parent80fcc9247a166ca056f049fc4662417b2ae157ce
[ASan][JSON] Unpoison memory before its reuse (#79065)

This commit unpoisons memory before its reuse (with reinterpret_cast).
Required by https://github.com/llvm/llvm-project/pull/79049

Notice that it's a temporary solution to prevent buildbots from failing.
Read FIXME for details.
llvm/include/llvm/Support/JSON.h