mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #2030] [CLOSED] Fix Dish Network caption out-of-bounds panics in userdata.rs #2833
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/2030
Author: @THE-Amrit-mahto-05
Created: 1/17/2026
Status: ❌ Closed
Base:
master← Head:fix/rust-dish-caption-oob📝 Commits (1)
926c232Fix Dish Network caption out-of-bounds panics in userdata.rs📊 Changes
1 file changed (+18 additions, -2 deletions)
View changed files
📝
src/rust/src/es/userdata.rs(+18 -2)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Description
Prevents critical crashes when processing malformed or truncated Dish Network caption streams.
Previously, the code performed unchecked slicing based on pattern_type, which could panic if insufficient data was available.
The old comment “4 to 6 bytes” was outdated. Based on the actual patterns, the required range is now 4 to 12 bytes.
This fix ensures the decoder continues gracefully with subsequent packets without crashing.
Fix
Returning Ok(1) skips malformed packets while preserving decoder stability, and all valid packets continue processing as before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.