Skip to content

Adds sanity check on hash size#517

Merged
bjornvolcker merged 1 commit into
masterfrom
fix/decode-general
May 5, 2026
Merged

Adds sanity check on hash size#517
bjornvolcker merged 1 commit into
masterfrom
fix/decode-general

Conversation

@bjornvolcker

Copy link
Copy Markdown
Contributor

When decoding the general tag, the last part includes two
hashes. The size is determine from the tag length. If the
SEI has been modified with a larger value it could cause
writing in another place in memory. This commit prevents
that by sanity checking the calculated hash size.

When decoding the general tag, the last part includes two
hashes. The size is determine from the tag length. If the
SEI has been modified with a larger value it could cause
writing in another place in memory. This commit prevents
that by sanity checking the calculated hash size.
@bjornvolcker bjornvolcker merged commit fdb17cd into master May 5, 2026
3 checks passed
@bjornvolcker bjornvolcker deleted the fix/decode-general branch May 5, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant