[compiler-rt] [compiler-rt][rtsan] fseek api interception. (PR #122163)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 15:27:47 PST 2025
================
@@ -453,6 +453,66 @@ TEST_F(RtsanFileTest, SetbufferDieWhenRealtime) {
}
#endif
+#if SANITIZER_INTERCEPT_FSEEK
+TEST_F(RtsanOpenedFileTest, FgetposDieWhenRealtime) {
+ auto Func = [this]() {
+ int pos = fgetpos(GetOpenFile());
+ ASSERT_THAT(pos, Eq(0));
+ };
+
+ ExpectRealtimeDeath(Func, MAYBE_APPEND_64("fgetpos"));
----------------
cjappl wrote:
Where are the interceptors for fseek64, fgetpos64, ...64 etc? I'm surprised these tests pass on linux
https://github.com/llvm/llvm-project/pull/122163
More information about the llvm-commits
mailing list