WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
303911
[WPEPlatform] Avoid null XKB context usage due to missing directories
https://bugs.webkit.org/show_bug.cgi?id=303911
Summary
[WPEPlatform] Avoid null XKB context usage due to missing directories
Adrian Perez
Reported
2025-12-10 01:15:53 PST
The xkb_context_new() function may return NULL if the default include directories for configuration files cannot be found. Instead, we can pass the XKB_CONTEXT_NO_DEFAULT_INCLUDES, and manually call xkb_context_include_path_append_default(), which itself may fail, but then we can let libxkbcommon log the error and keep using a valid context that may not be completely configured, but at least WebKit won't crash due to usage of a null xkb_context instances.
Attachments
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2025-12-10 01:46:35 PST
Pull request:
https://github.com/WebKit/WebKit/pull/55164
EWS
Comment 2
2025-12-10 14:01:26 PST
Committed
304260@main
(17a6481aedb0): <
https://commits.webkit.org/304260@main
> Reviewed commits have been landed. Closing PR #55164 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug