Skip to content

fix: enforce size limit on individual files in build_bundle() - #3911

Open
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/bundle-unbounded-read
Open

fix: enforce size limit on individual files in build_bundle()#3911
Quratulain-bilal wants to merge 1 commit into
github:mainfrom
Quratulain-bilal:fix/bundle-unbounded-read

Conversation

@Quratulain-bilal

Copy link
Copy Markdown
Contributor

Problem

build_bundle() called read_bytes() without any size guard. A single large asset file could exhaust memory.

Fix

Enforce MAX_ZIP_MEMBER_BYTES (10 MiB) limit before reading each file.

Testing

  • Verified normal files are packaged correctly
  • Verified oversized files are rejected

build_bundle() called read_bytes() without any size guard. A single
large asset file could exhaust memory. Enforce MAX_ZIP_MEMBER_BYTES
(10 MiB) limit before reading.
@Quratulain-bilal
Quratulain-bilal requested a review from mnriem as a code owner July 31, 2026 12:57
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