Skip to content

Use readOrThrow in MatroskaVideo::decodeBlock for EOF detection (backport #9282)#9315

Open
mergify[bot] wants to merge 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9282
Open

Use readOrThrow in MatroskaVideo::decodeBlock for EOF detection (backport #9282)#9315
mergify[bot] wants to merge 1 commit into
0.28.xfrom
mergify/bp/0.28.x/pr-9282

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 29, 2026

Fix #9281:

Four io_->read() calls in decodeBlock() do not check the return value. On a truncated file, the buffer may contain stale data from the previous iteration.

Replace them with readOrThrow() to throw on short reads. This is consistent with the ASF parser fix in PR #3005.


This is an automatic backport of pull request #9282 done by Mergify.

Four io_->read() calls in decodeBlock() do not check the return
value. On a truncated file, the buffer may contain stale data
from the previous iteration.

Replace them with readOrThrow() to throw on short reads. This
is consistent with the ASF parser fix in PR #3005.

(cherry picked from commit 0a70dfe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant