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 crashes in test6 #177

Merged
merged 2 commits into from
Feb 18, 2024
Merged

Fix crashes in test6 #177

merged 2 commits into from
Feb 18, 2024

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Feb 17, 2024

Fixes #176, this will need a backport.

The Block reference handling seems bogus as it thinks it owns the reference Block. It seems mkvtoolnix doesn't use this (muxing) feature so no problem there.
We may fix it in 2.0 or just remove the feature.

In a perfect world it should not even compile.
Both the Cluster and the reference handler think they own the block.
@robUx4 robUx4 added the bug label Feb 17, 2024
@mbunkus
Copy link
Contributor

mbunkus commented Feb 17, 2024

Due to this I've long since used a derived class from KaxReferenceBlock that allows me to set the value directly instead of letting the class calculate the value from blocks.

@robUx4
Copy link
Contributor Author

robUx4 commented Feb 18, 2024

Maybe we can use weak references in 2.0 https://en.cppreference.com/w/cpp/memory/weak_ptr ?

@robUx4 robUx4 merged commit 49f0e33 into Matroska-Org:master Feb 18, 2024
15 checks passed
@robUx4 robUx4 deleted the test6_fixes branch February 18, 2024 06:27
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.

Some tests do not build, some crash on 1.7.1 and latest 1.x
2 participants