mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-28 17:10:33 +00:00
[PR #1964] fix TS/ES: Integer overflow, stack overflow, heap over-read #2764
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/1964
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):
Description:
This PR addresses three critical and previously unreported vulnerabilities in CCExtractor's TS/ES decoders.
Issue: #1963
Problems fixed:
Integer Overflow in TS PSI buffer (
ts_tables.c)buffer_length + payload_lengthfrom exceeding 1MB.Stack Overflow in SCTE 20 parsing (
es_userdata.c)cc_dataarray.cc_dataarray and added termination for safety.Heap Buffer Over-read in GXF VBI parsing (
es_userdata.c)decode_vbireads 720 bytes unconditionally regardless ofudatalen.udatalen >= 720before callingdecode_vbi.Testing:
Impact:
Prevents heap corruption, stack overflow, and buffer over-read in core decoders. Ensures robustness against malformed TS/ES streams.