Skip to content

Conversation

@jjbayer
Copy link
Member

@jjbayer jjbayer commented Feb 4, 2026

When a minidump comes with Content-Encoding, we stop decompressing when we hit the size limit. However, if a multipart field contains a compressed minidump, we decompress the full item and only remove it later in check_envelope_size_limits. This causes unnecessary memory usage.

Stop decoding compressed minidumps when the decompressed size exceeds
max_attachment_size, preventing decompression bombs from exhausting memory.
This applies the same limit that Content-Encoding decompression uses.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant