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 dangling pointer access in main output #920

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

norihiro
Copy link
Contributor

@norihiro norihiro commented Nov 6, 2023

Description

This PR defers the allocation of the NDI main output context.

Fix #908

Motivation and Context

After OBS Studio has reset its video output, the NDI main output still held a pointer to the old video output and tried to access it when starting the NDI main output.

How Has This Been Tested?

OS: Fedora 37

I followed the steps described in the issue #908 and confirmed it crashed without this PR but does not crash with this PR.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

After OBS Studio has reset its video output, the NDI main output still
held a pointer to the old video output and tried to access it when
starting the NDI main output. To avoid the dangling pointer access,
defer allocation of the NDI main output context.
@norihiro norihiro force-pushed the fig-dangling-pointer branch from ba27994 to 4aeb4ae Compare November 6, 2023 10:10
@paulpv paulpv merged commit 02b08ed into DistroAV:master Nov 6, 2023
6 checks passed
@norihiro norihiro deleted the fig-dangling-pointer branch November 11, 2023 23:14
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.

[Bug]: Dangling pointer access when starting NDI output
2 participants