mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1980] Fix OOB read/write in Teletext G0 charset remapping #2783
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/1980
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Summary
This PR fixes an out-of-bounds read/write in the Teletext decoder, specifically in the function
remap_g0_charset(uint8_t c).Root Cause
cwas used as an index intoG0_LATIN_NATIONAL_SUBSETS_MAP(size 56) without bounds checking.mwas then used as an index into another table (size 14) without validation.Fix
candm.Impact
fixed Issue: #1979