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
We got a report of gnome-shell crashing when libgweather is trying to parse malformed XML after gnome-shell has previously called (via gnome-desktop) something like:
rxkb_context_parse() calls xmlSetGenericErrorFunc() via parse() to set the global libxml2 error handler to its xml_error_func(), which depends on a valid rxkb_context. The context however is no longer valid after rxkb_context_unref(), while the error handler is still pointing to xml_error_func() . This then results in a crash whenever something causes libxml2 to trigger an error afterwards, such as libgweather in the gnome-shell report.
parse() should restore the default error handler after it is done parsing.
The text was updated successfully, but these errors were encountered:
sbstnk
added a commit
to sbstnk/libxkbcommon
that referenced
this issue
Oct 12, 2024
Thanks for the great debugging and the corresponding PR!
wismill
added
bug
Indicates an unexpected problem or unintended behavior
registry
Indicates a need for improvements or additions to Registry
labels
Oct 13, 2024
We got a report of gnome-shell crashing when libgweather is trying to parse malformed XML after gnome-shell has previously called (via
gnome-desktop
) something like:rxkb_context_parse()
callsxmlSetGenericErrorFunc()
viaparse()
to set the global libxml2 error handler to itsxml_error_func()
, which depends on a validrxkb_context
. The context however is no longer valid afterrxkb_context_unref()
, while the error handler is still pointing toxml_error_func()
. This then results in a crash whenever something causes libxml2 to trigger an error afterwards, such as libgweather in the gnome-shell report.parse()
should restore the default error handler after it is done parsing.The text was updated successfully, but these errors were encountered: