[PR #78] [MERGED] Implement some stricter format checks in the decoder. #680

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

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/78
Author: @szabadka
Created: 4/22/2015
Status: Merged
Merged: 4/22/2015
Merged by: @szabadka

Base: masterHead: master


📝 Commits (2)

  • 28b1f7a Implement some stricter format checks in the decoder.
  • 84a7687 Merge remote-tracking branch 'upstream/master'

📊 Changes

1 file changed (+41 additions, -8 deletions)

View changed files

📝 dec/decode.c (+41 -8)

📄 Description

  • Reject brotli streams where the number of
    nibbles is too large for the size of the
    meta-block
  • Reject brotli streams where the padding
    bits after a meta-block are not all zero
  • Reject brotli streams where the symbol
    in the simple prefix code is not in
    the symbol alphabet

🔄 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/78 **Author:** [@szabadka](https://github.com/szabadka) **Created:** 4/22/2015 **Status:** ✅ Merged **Merged:** 4/22/2015 **Merged by:** [@szabadka](https://github.com/szabadka) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`28b1f7a`](https://github.com/google/brotli/commit/28b1f7a6b1d26ac9d47f31caa05e11b76f1723e1) Implement some stricter format checks in the decoder. - [`84a7687`](https://github.com/google/brotli/commit/84a7687453d8add8d5a7218f386f337bb1b1040f) Merge remote-tracking branch 'upstream/master' ### 📊 Changes **1 file changed** (+41 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `dec/decode.c` (+41 -8) </details> ### 📄 Description - Reject brotli streams where the number of nibbles is too large for the size of the meta-block - Reject brotli streams where the padding bits after a meta-block are not all zero - Reject brotli streams where the symbol in the simple prefix code is not in the symbol alphabet --- <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:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#680