Skip to content

Commit

Permalink
fix incorrect DataView length in ArrayBufferReader
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtThiemann committed Apr 27, 2023
1 parent 17494a6 commit fa04bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "armarius",
"version": "1.10.3",
"version": "1.10.4",
"description": "A JavaScript library to read, write, and merge ZIP archives in web browsers.",
"repository": "github:aternosorg/armarius",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/Reader/ArrayBufferReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export default class ArrayBufferReader extends DataReader {
constructor(buffer, offset = 0, length = null) {
super();
this.data = new Uint8Array(buffer);
this.view = new DataView(buffer, offset, length);
this.byteOffset = offset;
this.byteLength = length ?? buffer.byteLength;
this.view = new DataView(buffer, offset, this.byteLength);
this.byteOffset = offset;
}

/**
Expand Down

0 comments on commit fa04bd1

Please sign in to comment.