[webkit-changes] [WebKit/WebKit] 281f71: [WPE] WPE Platform: fix nullptr deref without IME ...
Christian Meissl
noreply at github.com
Wed Feb 26 02:26:36 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 281f713ebdaf39ebecc6291ef87a01440577441b
https://github.com/WebKit/WebKit/commit/281f713ebdaf39ebecc6291ef87a01440577441b
Author: Christian Meissl <meissl.christian at gmail.com>
Date: 2025-02-26 (Wed, 26 Feb 2025)
Changed paths:
M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
Log Message:
-----------
[WPE] WPE Platform: fix nullptr deref without IME support
https://bugs.webkit.org/show_bug.cgi?id=288582
Reviewed by Carlos Garcia Campos.
While `wpeDisplayCreateInputMethodContext` already returns
a dummy input context with `wpeInputMethodContextNoneNew`
in case the display does not support IME at all it does not
test for nullptr of the returned context from the display.
The wayland display evaluates the presence of an IME context
at runtime depending on the actual supported wayland protocols.
In case the compositor does not announce any IME support a
nullptr will be returned, leading to a nullptr dereference later.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp:
(wpeDisplayCreateInputMethodContext):
Canonical link: https://commits.webkit.org/291104@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list