[PR #1234] [MERGED] Add support for limiting output size in Python streaming decompression, take 2 #1798

Open
opened 2026-01-29 20:55:51 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/1234
Author: @robryk
Created: 1/6/2025
Status: ✅ Merged
Merged: 1/8/2025
Merged by: @copybara-service[bot]

Base: master ← Head: sizelimit


📝 Commits (4)

  • 28ce91c add size limit to buffer
  • eb3a31e add max_length to Python streaming decompression
  • 4034fe3 Merge branch 'master' into sizelimit
  • d144c58 Merge branch 'master' into sizelimit

📊 Changes

4 files changed (+197 additions, -67 deletions)

View changed files

📝 python/_brotli.c (+155 -67)
📝 python/tests/decompressor_test.py (+42 -0)
➕ tests/testdata/zerosukkanooa (+0 -0)
➕ tests/testdata/zerosukkanooa.compressed (+0 -0)

📄 Description

This is a fixed version of #1201


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/1234 **Author:** [@robryk](https://github.com/robryk) **Created:** 1/6/2025 **Status:** ✅ Merged **Merged:** 1/8/2025 **Merged by:** [@copybara-service[bot]](https://github.com/apps/copybara-service) **Base:** `master` ← **Head:** `sizelimit` --- ### 📝 Commits (4) - [`28ce91c`](https://github.com/google/brotli/commit/28ce91caf605ac5481e9ca69131a28e1087574b7) add size limit to buffer - [`eb3a31e`](https://github.com/google/brotli/commit/eb3a31e2d356d5a633de995afe7fe60e590a26d8) add max_length to Python streaming decompression - [`4034fe3`](https://github.com/google/brotli/commit/4034fe3654de5173476d22c1f1d061871ecb533b) Merge branch 'master' into sizelimit - [`d144c58`](https://github.com/google/brotli/commit/d144c5833ae97eab2ca3409d7ce4391441b85a0e) Merge branch 'master' into sizelimit ### 📊 Changes **4 files changed** (+197 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `python/_brotli.c` (+155 -67) 📝 `python/tests/decompressor_test.py` (+42 -0) ➕ `tests/testdata/zerosukkanooa` (+0 -0) ➕ `tests/testdata/zerosukkanooa.compressed` (+0 -0) </details> ### 📄 Description This is a fixed version of #1201 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:55:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1798