diff options
author | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-08 09:47:57 +0900 |
---|---|---|
committer | Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp> | 2014-08-20 22:19:45 +0900 |
commit | cfa0b74d5a7782531f73112824c13a90c24e3459 (patch) | |
tree | 666de85e5e051c96662b08207a13bea04efbbb5b | |
parent | efa8e8b714e2c5e97b0e084402d1fedfd4888806 (diff) | |
download | wayland-ivi-extension-cfa0b74d5a7782531f73112824c13a90c24e3459.tar.gz |
ivi-controller: Fix NULL deref in controller_screen_set_render_order
and invalid cast of pointer.
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
-rwxr-xr-x | weston-ivi-shell/src/ivi-controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c index 3a66d37..8387575 100755 --- a/weston-ivi-shell/src/ivi-controller.c +++ b/weston-ivi-shell/src/ivi-controller.c @@ -1077,8 +1077,8 @@ controller_screen_set_render_order(struct wl_client *client, int i = 0; (void)client; - *layoutlayer_array = (struct ivi_layout_layer*)calloc( - id_layers->size, sizeof(void*)); + layoutlayer_array = (struct ivi_layout_layer**)calloc( + id_layers->size, sizeof(void*)); wl_array_for_each(id_layer, id_layers) { wl_list_for_each(ivilayer, &iviscrn->shell->list_layer, link) { |