Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: CEA decoder should return early if packet is not large enough #5893

Merged

Conversation

nrcrast
Copy link
Contributor

@nrcrast nrcrast commented Nov 15, 2023

Fixes #5891

In production, we are seeing the occasional SEI packet [0x5b], which is causing the parser to error. Using Mux.JS, this packet is ignored because it's not long enough to be a valid captions packet, so for feature parity it would make sense for the built in Shaka parser to also ignore.

@avelad avelad added type: bug Something isn't working correctly component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release labels Nov 15, 2023
@avelad avelad added this to the v4.6 milestone Nov 15, 2023
@avelad avelad merged commit 9a694b5 into shaka-project:main Nov 15, 2023
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@tykus160 tykus160 deleted the patch/caption-parser-size-safety branch November 16, 2023 07:50
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Nov 30, 2023
…haka-project#5893)

Fixes shaka-project#5891 

In production, we are seeing the occasional SEI packet [`0x5b`], which
is causing the parser to error. Using Mux.JS, this packet is ignored
because it's not long enough to be a valid captions packet, so for
feature parity it would make sense for the built in Shaka parser to also
ignore.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jan 14, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: captions/subtitles The issue involves captions or subtitles priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUFFER_READ_OUT_OF_BOUNDS encountered in linear stream
4 participants