Skip to content

Commit

Permalink
fix out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
tsearle committed Nov 15, 2023
1 parent 35673b3 commit f75fa76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wasm_parts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f75fa76

Please sign in to comment.