mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1975] [MERGED] Fix OOB read/write and length handling in CEA-608/708 decoders #2773
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/1975
Author: @THE-Amrit-mahto-05
Created: 1/3/2026
Status: ✅ Merged
Merged: 1/5/2026
Merged by: @cfsmp3
Base:
master← Head:fix/cea-608-708-oob📝 Commits (1)
51cae1cFix OOB read/write and length handling in CEA-608/708 decoders📊 Changes
2 files changed (+27 additions, -3 deletions)
View changed files
📝
src/lib_ccx/ccx_decoders_608.c(+7 -0)📝
src/lib_ccx/ccx_decoders_708.c(+20 -3)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
description
This change addresses multiple robustness and security issues in the CEA-608 and CEA-708 caption decoders.
The issues were triggered by malformed or truncated caption streams and could lead to out-of-bounds memory access or decoder desynchronization.
These issues did not appear to be previously reported.
Issues Identified
File: src/lib_ccx/ccx_decoders_608.c
Impact:
Potential out-of-bounds write → memory corruption and crashes.
File: src/lib_ccx/ccx_decoders_708.c
Impact:
Out-of-bounds read → crashes or processing of garbage data.
File: src/lib_ccx/ccx_decoders_708.c
Impact:
Increased likelihood of OOB reads and incorrect parsing behavior.
Fixes Implemented
CEA-608 Decoder
CEA-708 Decoder
Safely skip malformed EXT1 sequences without reading past buffer bounds.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.