You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bound decompressed response size before buffering it #343
requestPinned() caps the raw response at MAX_BYTES, but decodeBody() calls gunzipSync(), brotliDecompressSync(), and inflateSync() without an output-size limit. A small compressed response with an extreme expansion ratio can therefore allocate far more than 2 MiB before fetchCapped() applies its decoded-byte cap, potentially exhausting the CLI process.
Could we enforce MAX_BYTES as the decompressor's maxOutputLength and handle limit errors explicitly instead of returning raw compressed bytes? A regression test with a highly compressible payload would help lock this down.
Activity