Skip to content

[1.x] KaxDefines: do not allow infinite sizes on all Master elements except Segment+Cluster#234

Open
robUx4 wants to merge 1 commit into
Matroska-Org:v1.xfrom
robUx4:1x-finite-master
Open

[1.x] KaxDefines: do not allow infinite sizes on all Master elements except Segment+Cluster#234
robUx4 wants to merge 1 commit into
Matroska-Org:v1.xfrom
robUx4:1x-finite-master

Conversation

@robUx4
Copy link
Copy Markdown
Contributor

@robUx4 robUx4 commented Apr 27, 2026

Only Segment 1 and Clusters 2 are allowed to be infinite.
They both use the DECLARE_MKX_MASTER_CONS() macro and are the only ones to use them.

Footnotes

  1. https://www.rfc-editor.org/rfc/rfc9559#section-5.1

  2. https://www.rfc-editor.org/rfc/rfc9559#section-5.1.3

@robUx4 robUx4 added the abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) label Apr 27, 2026
ePirat pushed a commit to videolan/vlc that referenced this pull request Apr 30, 2026
This will allow false detection of an EBML elements.
Only Segment [^1] and Clusters [^2] are allowed to be infinite
and they use a different macro.

Submitted upstream [^3] but will need a new release as it might break the ABI.

Ref. #29578

[^1]: https://www.rfc-editor.org/rfc/rfc9559#section-5.1
[^2]: https://www.rfc-editor.org/rfc/rfc9559#section-5.1.3
[^3]: Matroska-Org/libmatroska#234
ePirat pushed a commit to videolan/vlc that referenced this pull request May 7, 2026
This will allow false detection of an EBML elements.
Only Segment [^1] and Clusters [^2] are allowed to be infinite
and they use a different macro.

Submitted upstream [^3] but will need a new release as it might break the ABI.

Ref. #29578

[^1]: https://www.rfc-editor.org/rfc/rfc9559#section-5.1
[^2]: https://www.rfc-editor.org/rfc/rfc9559#section-5.1.3
[^3]: Matroska-Org/libmatroska#234

(cherry picked from commit f2d8e61)
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant