mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
connection: fix segfault in wl_closure_invoke()
Signed-off-by: Caitlyn Stewart <caitlynrosestewart@gmail.com>
This commit is contained in:
parent
62cd0990e8
commit
827d0c30ad
1 changed files with 5 additions and 0 deletions
|
|
@ -1229,6 +1229,11 @@ wl_closure_invoke(struct wl_closure *closure, uint32_t flags,
|
||||||
count + 2, &ffi_type_void, ffi_types);
|
count + 2, &ffi_type_void, ffi_types);
|
||||||
|
|
||||||
implementation = target->implementation;
|
implementation = target->implementation;
|
||||||
|
if (!implementation) {
|
||||||
|
wl_abort("Implementation of resource %d of %s is NULL\n",
|
||||||
|
target->id, target->interface->name);
|
||||||
|
}
|
||||||
|
|
||||||
if (!implementation[opcode]) {
|
if (!implementation[opcode]) {
|
||||||
wl_abort("listener function for opcode %u of %s is NULL\n",
|
wl_abort("listener function for opcode %u of %s is NULL\n",
|
||||||
opcode, target->interface->name);
|
opcode, target->interface->name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue