[PR #240] Added note about invalid distance values #837

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

Original Pull Request: https://github.com/google/brotli/pull/240

State: closed
Merged: Yes


It might be helpful for implementers to mention briefly conditions that qualify an input stream for rejection. This has already been applied in other places, so I believe it would make sense for distances as well.

It is my understanding that a negative distance, or a zero distance should be rejected as invalid.

**Original Pull Request:** https://github.com/google/brotli/pull/240 **State:** closed **Merged:** Yes --- It might be helpful for implementers to mention briefly conditions that qualify an input stream for rejection. This has already been applied in other places, so I believe it would make sense for distances as well. It is my understanding that a negative distance, or a zero distance should be rejected as invalid.
claunia added the pull-request label 2026-01-29 20:51:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#837