-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Open
Description
Version
v24.11.1
Platform
Linux cc96c567cc46 6.12.53 #1 SMP PREEMPT_DYNAMIC Tue Oct 28 18:05:29 UTC 2025 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
import { createReadStream, createWriteStream } from 'node:fs';
import { Readable } from 'node:stream';
import { pipeline } from 'node:stream/promises';
import { createGunzip, createGzip } from 'node:zlib';
import { buffer } from 'node:stream/consumers';
const buf = Buffer.allocUnsafe(4646837723);
await pipeline(Readable.from([buf]), createGzip(), createWriteStream('test.gz', { flags: 'w' }));
const out = await buffer(createReadStream('test.gz').pipe(createGunzip()));
console.log(out.length);How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
throw an error or output 4646837723
What do you see instead?
output 351870427
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels