[PATCH] ivi-controller: do not iterate over empty list in send_surface_add_event

mateuszx.potrola at intel.com mateuszx.potrola at intel.com
Mon May 16 07:30:01 EDT 2016


Iterating over empty list will modify first value passed to wl_list_for_each,
but that won't be valid list entry, which in case of send_surface_add_even
leads to crash.
---
 weston-ivi-shell/src/ivi-controller-impl.c | 4 ++++
 1 file changed, 4 insertions(+)

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ivi-controller-do-not-iterate-over-empty-list-in-sen.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-ivi-layer-management_lists.genivi.org/attachments/20160516/5e6af9b6/attachment.patch>


More information about the genivi-ivi-layer-management mailing list