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

wayland: fix segfault when all backends fail #789

Closed
wants to merge 1 commit into from

Conversation

emersion
Copy link
Contributor

@emersion emersion commented Jan 8, 2024

When all Wayland backends fail, vaGetDisplayWl() would still return a half-constructed display context, resulting in a sefault in va_DRM_GetDrmDriverName() later on when trying to access ctx->drm_state->fd.

Instead, cleanup and return NULL.

When all Wayland backends fail, vaGetDisplayWl() would still return
a half-constructed display context, resulting in a sefault in
va_DRM_GetDrmDriverName() later on when trying to access
ctx->drm_state->fd.

Instead, cleanup and return NULL.

Signed-off-by: Simon Ser <contact@emersion.fr>
@XinfengZhang
Copy link
Contributor

duplicate with #788 ?

@emersion
Copy link
Contributor Author

emersion commented Jan 9, 2024

Indeed.

@emersion
Copy link
Contributor Author

Superseded by #788

@emersion emersion closed this Jan 22, 2024
@emersion emersion deleted the segfault-wl-backend branch January 22, 2024 08:02
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.

2 participants