@zip.js/zip.js 2.8.23 → 2.8.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zip-fs.js CHANGED
@@ -2800,7 +2800,7 @@
2800
2800
  if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
2801
2801
  return eocdCache;
2802
2802
  }
2803
- if (index >= size) {
2803
+ if (index >= size || length === 0) {
2804
2804
  return new Uint8Array();
2805
2805
  } else {
2806
2806
  if (index + length > size) {