[clang] [clang][bytecode] Fix unknown size arrays crash in clang bytecode (PR #160015)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 22 04:12:05 PDT 2025
================
@@ -0,0 +1,14 @@
+// Test that strlen() on external/unknown declarations doesn't crash the bytecode interpreter
+// This fixes issue #153948
+
+#include <cstddef>
+#include <cstdlib>
+#include <cstring>
----------------
tbaederr wrote:
We can't use stdlib includes in the tests, you need to get the appropriate strcpy prototype and copy that in.
https://github.com/llvm/llvm-project/pull/160015
More information about the cfe-commits
mailing list