[compiler-rt] [compiler-rt][rtsan] adding setlinebuf/setbuffer interception. (PR #122018)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 04:56:37 PST 2025
================
@@ -421,14 +421,36 @@ TEST_F(RtsanFileTest, SetvbufDieWhenRealtime) {
FILE *f = fopen(GetTemporaryFilePath(), "w");
EXPECT_THAT(f, Ne(nullptr));
- auto Func = [&f, &buffer, &size]() {
- int r = setvbuf(f, buffer, _IOFBF, size);
+ auto Func = [f, buffer, size]() {
+ int r = setvbuf(f, (char *)buffer, _IOFBF, size);
----------------
fmayer wrote:
the cast shouldn't be needed
https://github.com/llvm/llvm-project/pull/122018
More information about the llvm-commits
mailing list