You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please do NOT submit bug reports for questions. Ask questions on IRC at #sway on Libera Chat.
Proprietary graphics drivers, including nvidia, are not supported. Please use the open source equivalents, such as nouveau, if you would like to use Sway.
Please do NOT submit issues for information from the github wiki. The github wiki is community maintained and therefore may contain outdated information, scripts that don't work or obsolete workarounds.
If you fix a script or find outdated information, don't hesitate to adjust the wiki page.
sertonix
changed the title
wlr_output_get_primary_formats returning NULL not handled
wlr_output_get_primary_formats returning NULL not handled (causing segfault)
Dec 10, 2024
I don't know in which line the NULL check belongs and what should be done in that case. So I would prefer to leave that to the experts. Hope that is ok.
Please read the following before submitting:
If you fix a script or find outdated information, don't hesitate to adjust the wiki page.
Please fill out the following:
Sway Version: 1.10
Debug Log: sway.log
Configuration File:
xwayland disable
Stack Trace: sway-bt.log
Description:
If the wlroots documentation is correct
wlr_output_get_primary_formats
may returnNULL
(doc). It looks like this is not handled correctly atsway/sway/config/output.c
Line 776 in f293418
wlr_drm_format_set_get
without aNULL
check. wlroots then tries to dereference the pointer and segfaults (drm_format_set.c#L32
).I wasn't able to create a reproducer that I can share but I hope the analysis is enough.
The text was updated successfully, but these errors were encountered: