[llvm] [WebAssembly] Protect memory.fill and memory.copy from zero-length ranges. (PR #112617)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 18:31:57 PDT 2024
================
@@ -54,3 +52,10 @@ HANDLE_MEM_NODETYPE(GLOBAL_GET)
HANDLE_MEM_NODETYPE(GLOBAL_SET)
HANDLE_MEM_NODETYPE(TABLE_GET)
HANDLE_MEM_NODETYPE(TABLE_SET)
+
+// Bulk memory instructions. These follow LLVM's expected semantics of
+// supporting out-of-bounds pointers if the length is zero, by insertig
----------------
aheejin wrote:
```suggestion
// supporting out-of-bounds pointers if the length is zero, by inserting
```
https://github.com/llvm/llvm-project/pull/112617
More information about the llvm-commits
mailing list