[clang] [clang][Sema] Add buffer-size checks for unistd I/O functions (PR #224979)
Denys Fedoryshchenko via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 2 03:00:23 PDT 2026
================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -triple i686-unknown-linux %s -verify
+// RUN: %clang_cc1 -triple x86_64-unknown-linux %s -verify
+
+// Verify that the fortify dispatch is tolerant of libc typedef choices for
+// ssize_t. glibc uses `long` while other libcs (musl, bionic) may use a
+// type that matches Clang's signed counterpart of size_t. On ILP32 these
+// differ canonically (`long` vs `int`) even though both are 32-bit signed
+// integers; builtin recognition must accept either as ssize_t.
----------------
nuclearcat wrote:
Done
https://github.com/llvm/llvm-project/pull/224979
More information about the cfe-commits
mailing list