[clang] [libcxx] [Clang] Diagnose forming references to nullptr (PR #143667)

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 05:18:04 PDT 2025


================
@@ -59,7 +59,7 @@ constexpr bool test() {
 
   {
     //  bidi
-    int buffer[2] = {1, 2};
+    int buffer[3] = {1, 2, 3};
----------------
philnik777 wrote:

I guess the out of bounds read was in line 79? I think we should rather fix getting the address. Right now we'd not iterate through the whole range properly otherwise.

https://github.com/llvm/llvm-project/pull/143667


More information about the cfe-commits mailing list