Skip to content

Commit

Permalink
Merge pull request #391 from tsearle/fix_out_of_bounds
Browse files Browse the repository at this point in the history
Fix out of bounds
  • Loading branch information
akvlad authored Nov 15, 2023
2 parents d1a459a + e7d3a5f commit d990203
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 d990203

Please sign in to comment.