[PR #505] [MERGED] Fix #502 decoder bug #1145

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

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/505
Author: @eustas
Created: 2/7/2017
Status: ✅ Merged
Merged: 2/7/2017
Merged by: @eustas

Base: master ← Head: zero-distance


📝 Commits (1)

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 dec/decode.c (+6 -0)

📄 Description

Decoder may have produced invalid output if:

  • at offset 0..3 dictionary word with index 3..0 for some length N is used
    and distance is encoded with direct distance code 0, and
  • at least one of next 4 commands use value from distance ringbuffer

🔄 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/505 **Author:** [@eustas](https://github.com/eustas) **Created:** 2/7/2017 **Status:** ✅ Merged **Merged:** 2/7/2017 **Merged by:** [@eustas](https://github.com/eustas) **Base:** `master` ← **Head:** `zero-distance` --- ### 📝 Commits (1) - [`8e27fd7`](https://github.com/google/brotli/commit/8e27fd71725ed24c39f34d65ae6c81921b6f8ab5) Fix #502 decoder bug ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `dec/decode.c` (+6 -0) </details> ### 📄 Description Decoder may have produced invalid output if: * at offset 0..3 dictionary word with index 3..0 for some length N is used and distance is encoded with direct distance code 0, and * at least one of next 4 commands use value from distance ringbuffer --- <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:52:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1145