mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #1962] fix DTVCC: Structural type confusion / OOB writes #2766
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1962
State: closed
Merged: No
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Title:
[FIX] DTVCC: Structural type confusion / OOB writes (#1961)Description:
This PR addresses a critical structural type confusion and out-of-bounds (OOB) write in the DTVCC (CEA-708) decoder.
Issue: #1961
Problem:
Malformed or malicious CEA-708 streams could define windows with row/column counts exceeding the maximums. This could lead to:
Fix implemented:
row_countandcol_countindtvcc_handle_DFx_DefineWindow.pen_rowandpen_columnindtvcc_process_characteranddtvcc_handle_SPL_SetPenLocation.dtvcc_window_copy_to_screento reject windows exceeding maximum dimensions.Impact:
Testing:
CCX_DTVCC_MAX_ROWS/COLUMNSare rejected.