<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Dereference a pointer after null check"
href="https://bugs.freedesktop.org/show_bug.cgi?id=91356">91356</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Dereference a pointer after null check
</td>
</tr>
<tr>
<th>Product</th>
<td>Wayland
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>wayland
</td>
</tr>
<tr>
<th>Assignee</th>
<td>wayland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ashim.shah@samsung.com
</td>
</tr></table>
<p>
<div>
<pre>Overview:
---------
Dereference a pointer after null check
Description:
-----------
File: <a href="http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-server.c">http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-server.c</a>
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>