https://bugs.freedesktop.org/show_bug.cgi?id=91356
Bug ID: 91356
Summary: Dereference a pointer after null check
Product: Wayland
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: wayland
Assignee: [email protected]
Reporter: [email protected]
Overview:
---------
Dereference a pointer after null check
Description:
-----------
File: http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-server.c
Line: 783
client->display_resource is NULL and client is passed as argument as below
wl_client_post_no_memory(client);
Line: 515
client->display_resource (NULL) is passed as argument
wl_resource_post_error(client->display_resource, WL_DISPLAY_ERROR_NO_MEMORY,
"no memory");
Line: 210
struct wl_client *client = resource->client;
resource is NULL so dereferencing a NULL pointer.
Expected:
--------
NULL checking required before dereferencing
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs