Skip to content

MXF: fixed infinite loop in malformed files#2532

Open
TehMrCrowley wants to merge 1 commit intoMediaArea:masterfrom
TehMrCrowley:MXF_INFINTE_LOOP
Open

MXF: fixed infinite loop in malformed files#2532
TehMrCrowley wants to merge 1 commit intoMediaArea:masterfrom
TehMrCrowley:MXF_INFINTE_LOOP

Conversation

@TehMrCrowley
Copy link
Copy Markdown

While processing malformed MXF files, we observed that MediaInfo enters an infinite loop, repeatedly re-reading the same byte range and never returning from the query operation. This results in the calling application blocking indefinitely.

The issue was reproduced using the current 25.10 master branch. After investigation, we identified the root cause and implemented a fix in our fork.

In addition to resolving the infinite loop condition, we modified the query logic to return false when a malformed MXF structure is detected, allowing the caller to handle the error gracefully instead of hanging.

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