From f75fa76b6ebb979d124a75ec06ab1710c2bc391a Mon Sep 17 00:00:00 2001 From: Torrey Searle Date: Wed, 15 Nov 2023 16:28:22 +0100 Subject: [PATCH] fix out of bounds --- wasm_parts/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wasm_parts/main.js b/wasm_parts/main.js index 8d881dfb..213ceadd 100644 --- a/wasm_parts/main.js +++ b/wasm_parts/main.js @@ -271,6 +271,7 @@ class Uint8ArrayWriter { writeString (str) { const bStr = (new TextEncoder()).encode(str) this.writeULeb(bStr.length) + this.maybeGrow(b.length) this.buf.set(bStr, this.i) this.i += bStr.length return this