[PR #209] [MERGED] Encoder fixes. #807

Closed
opened 2026-01-29 20:50:59 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/209
Author: @szabadka
Created: 10/6/2015
Status: Merged
Merged: 10/6/2015
Merged by: @szabadka

Base: masterHead: master


📝 Commits (1)

📊 Changes

8 files changed (+39 additions, -30 deletions)

View changed files

📝 enc/brotli_bit_stream.cc (+1 -0)
📝 enc/command.h (+0 -2)
📝 enc/encode_parallel.cc (+18 -12)
📝 enc/entropy_encode.cc (+0 -3)
📝 enc/histogram.h (+2 -0)
📝 enc/streams.cc (+3 -7)
📝 enc/streams.h (+1 -1)
📝 tools/bro.cc (+14 -5)

📄 Description

  • Remove default constructors.
  • Initialize bit_cost in histogram.Clear().
  • Check fseek result in FileSize.
  • Replace malloc in BrotliFileIn constructor with "new".
  • Catch bad_alloc in bro tool.

🔄 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/209 **Author:** [@szabadka](https://github.com/szabadka) **Created:** 10/6/2015 **Status:** ✅ Merged **Merged:** 10/6/2015 **Merged by:** [@szabadka](https://github.com/szabadka) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`2726b8a`](https://github.com/google/brotli/commit/2726b8a4f6181d0930a96fa91da9733b397e2952) Encoder fixes. ### 📊 Changes **8 files changed** (+39 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `enc/brotli_bit_stream.cc` (+1 -0) 📝 `enc/command.h` (+0 -2) 📝 `enc/encode_parallel.cc` (+18 -12) 📝 `enc/entropy_encode.cc` (+0 -3) 📝 `enc/histogram.h` (+2 -0) 📝 `enc/streams.cc` (+3 -7) 📝 `enc/streams.h` (+1 -1) 📝 `tools/bro.cc` (+14 -5) </details> ### 📄 Description - Remove default constructors. - Initialize bit_cost in histogram.Clear(). - Check fseek result in FileSize. - Replace malloc in BrotliFileIn constructor with "new". - Catch bad_alloc in bro tool. --- <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:50:59 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#807