zlib-streams 1.0.4 → 1.0.5

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.
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "WASM-based Compression Streams API implementation using zlib, with support for deflate64 decompression.",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "1.0.4",
6
+ "version": "1.0.5",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "deflate",
package/src/inflate9.c CHANGED
@@ -690,7 +690,7 @@ int ZEXPORT inflate9(z_streamp strm, int flush) {
690
690
  state->mode = BAD;
691
691
  break;
692
692
  }
693
- state->extra = (unsigned)(here.op) & 15;
693
+ state->extra = (unsigned)(here.op) & 31;
694
694
  state->mode = LENEXT;
695
695
  /* fallthrough */
696
696
  case LENEXT:
@@ -856,4 +856,4 @@ int ZEXPORT inflate9End(z_streamp strm) {
856
856
  strm->state = Z_NULL;
857
857
  Tracev((stderr, "inflate: end\n"));
858
858
  return Z_OK;
859
- }
859
+ }
@@ -0,0 +1,3 @@
1
+ This is a canonical roundtrip input text file for tests.
2
+ It contains several lines of predictable content.
3
+ Line three: Hello, world!
@@ -0,0 +1,3 @@
1
+ Short file
2
+ 1234567890
3
+ abcde