[Wayland-bugs] [Bug 91356] Dereference a pointer after null check
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 15 23:02:46 PDT 2015
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: wayland-bugs at lists.freedesktop.org
Reporter: ashim.shah at samsung.com
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20150716/815ff6a3/attachment.html>
More information about the wayland-bugs
mailing list