Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-24 Thread Bryce Harrington
On Wed, Sep 23, 2015 at 11:05:31PM +0200, John-John Tedro wrote: > On Tue, Sep 22, 2015 at 06:18:44PM -0700, Bryce Harrington wrote: > > ivi_layout_transition_fade_layer() checks for null before making the > > call, but this also needs done in create_visibility_transition(), > > ivi_layout_transiti

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-24 Thread John-John Tedro
On Tue, Sep 22, 2015 at 06:18:44PM -0700, Bryce Harrington wrote: > ivi_layout_transition_fade_layer() checks for null before making the > call, but this also needs done in create_visibility_transition(), > ivi_layout_transition_move_resize_view(), and > ivi_layout_transition_move_layer(). Or alte

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-23 Thread John-John Tedro
I'm currently investigating. I see two easy solutions, so please advice since I'm unfamiliar with the requirements on IVI-based solutions. 1) Bail, easy and safe, but might not be desirable. 2) Immediately transition into the desired state on errors. Slightly harder, but doable. Examples for

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-22 Thread Bryce Harrington
On Tue, Sep 22, 2015 at 05:28:32PM -0700, Bryce Harrington wrote: > On Sun, Sep 20, 2015 at 02:47:37AM +0200, John-John Tedro wrote: > > create_layout_transition does not initialize is_transition_func. > > > > This patch initializes it to NULL. > > > > Signed-off-by: John-John Tedro > > Reviewe

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-22 Thread Bryce Harrington
On Tue, Sep 22, 2015 at 02:13:37AM +0200, John-John Tedro wrote: > On Mon, Sep 21, 2015 at 09:33:29AM -0700, Bill Spitzak wrote: > >=20 > > Maybe this should be using xzalloc, that seems to be the standard method = > in > > Weston > > Yikes. > > It looks like create_move_resize_view_transition (a

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-22 Thread Bryce Harrington
On Mon, Sep 21, 2015 at 09:33:29AM -0700, Bill Spitzak wrote: > On Sat, Sep 19, 2015 at 5:47 PM, John-John Tedro > wrote: > > > create_layout_transition does not initialize is_transition_func. > > > > This patch initializes it to NULL. > > > > Signed-off-by: John-John Tedro > > --- > > ivi-shel

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-22 Thread Bryce Harrington
On Sun, Sep 20, 2015 at 02:47:37AM +0200, John-John Tedro wrote: > create_layout_transition does not initialize is_transition_func. > > This patch initializes it to NULL. > > Signed-off-by: John-John Tedro Reviewed-by: Bryce Harrington Btw, since this function sets nearly all the parameters t

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-21 Thread John-John Tedro
On Mon, Sep 21, 2015 at 09:33:29AM -0700, Bill Spitzak wrote: >=20 > Maybe this should be using xzalloc, that seems to be the standard method = in > Weston Yikes. It looks like create_move_resize_view_transition (and others?) returns NULL on allocation failures, which is fed unchecked into layout

Re: [PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-21 Thread Bill Spitzak
On Sat, Sep 19, 2015 at 5:47 PM, John-John Tedro wrote: > create_layout_transition does not initialize is_transition_func. > > This patch initializes it to NULL. > > Signed-off-by: John-John Tedro > --- > ivi-shell/ivi-layout-transition.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a

[PATCH][weston] ivi-shell: initialize all fields in create_layout_transition

2015-09-19 Thread John-John Tedro
create_layout_transition does not initialize is_transition_func. This patch initializes it to NULL. Signed-off-by: John-John Tedro --- ivi-shell/ivi-layout-transition.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ivi-shell/ivi-layout-transition.c b/ivi-shell/ivi-layout-transition.c ind