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

restrict the ranges of valid EBML ID values #298

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Sep 21, 2024

Match the exact values allowed in RFC 8794 Table 4 and 17.1 Ebml ID registry with errata https://www.rfc-editor.org/rfc/rfc8794.html#tableElementIDRanges https://www.rfc-editor.org/rfc/rfc8794.html#name-ebml-element-ids-registry

Not allowing the reserved values 0xFF, 0x7FFF, 0x3FFFFF and 0x1FFFFFFF. As they are reserved value maybe we should allow them in case they are used in the future ? But we don't know how.

EbmlDummy uses 0xFF internally which is supposed to be reserved. That ID value is never used but it's still an EbmlId object with a reserved/invalid value.

From the issue raised in 5326cfe#commitcomment-147015759

@robUx4 robUx4 added the bug label Sep 21, 2024
The default value is not handled in all classes that can have one
The DEFINE_EBML_CLASS_ORPHAN() validates the ID but we can do without.

En EbmlDummy instance cannot be created without an
actual ID.
Match the exact values allowed in RFC 8794 Table 4 and 17.1 Ebml ID registry with errata
https://www.rfc-editor.org/rfc/rfc8794.html#tableElementIDRanges
https://www.rfc-editor.org/rfc/rfc8794.html#name-ebml-element-ids-registry

Not allowing the reserved values 0xFF, 0x7FFF, 0x3FFFFF and 0x1FFFFFFF.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant