mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Increase closure buffer size and fail gracefully for too big closures.
Buffer size changed from 256 to 1024 bytes. Marshalling will now stop if the buffer is not big enough.
This commit is contained in:
parent
f598691831
commit
34901868b8
3 changed files with 38 additions and 6 deletions
|
|
@ -100,6 +100,9 @@ wl_resource_post_event(struct wl_resource *resource, uint32_t opcode, ...)
|
|||
&object->interface->events[opcode]);
|
||||
va_end(ap);
|
||||
|
||||
if (closure == NULL)
|
||||
return;
|
||||
|
||||
wl_closure_send(closure, resource->client->connection);
|
||||
|
||||
if (wl_debug)
|
||||
|
|
@ -122,6 +125,9 @@ wl_resource_queue_event(struct wl_resource *resource, uint32_t opcode, ...)
|
|||
&object->interface->events[opcode]);
|
||||
va_end(ap);
|
||||
|
||||
if (closure == NULL)
|
||||
return;
|
||||
|
||||
wl_closure_queue(closure, resource->client->connection);
|
||||
|
||||
if (wl_debug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue