mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-20 21:20:28 +00:00
[PR #1960] [CLOSED] Fix out-of-bounds read in H.264 SEI parsing #2762
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/1960
Author: @THE-Amrit-mahto-05
Created: 1/2/2026
Status: ❌ Closed
Base:
master← Head:fix/h264-sei-oob-read📝 Commits (1)
5dc8292Fix out-of-bounds read in H.264 SEI parsing📊 Changes
1 file changed (+8 additions, -2 deletions)
View changed files
📝
src/lib_ccx/avc_functions.c(+8 -2)📄 Description
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.