mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
[PR #1960] Fix out-of-bounds read in H.264 SEI parsing #2767
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/1960
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
Fixes #1959.
This PR fixes an out-of-bounds read in the H.264 SEI (Supplemental Enhancement Information) parser when handling FF-extended
payload_typeandpayload_sizefields.Malformed or truncated SEI NAL units containing a sequence of
0xFFbytes without a terminating byte could causesei_message()to read past the end of the SEI buffer, leading to undefined behavior or a crash.Changes made
seibuf < seiend) while parsing FF-extended SEI fields.Impact
Notes
This change does not modify output for valid SEI data and has no performance impact.