efl_canvas_object_animation: fix possible invalid pointer submit/tizen/20191121.215843
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 21 Nov 2019 17:41:08 +0000 (18:41 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 21 Nov 2019 21:50:48 +0000 (06:50 +0900)
commit80b13b0ea7c5c4d40a313e37cee581f6c6281970
tree51e45786e292ccdd2e7c7d6678574d26137ed26a
parent78999315c41129d91e0cb664481d15104b74c9d0
efl_canvas_object_animation: fix possible invalid pointer

now if one of the event handlers calls animation_stop in a callback to
EFL_CANVAS_OBJECT_ANIMATION_EVENT_ANIMATION_PROGRESS_UPDATED, then
pd->in will be freeed. Which means, in the next event handler the
address taken by &pd->in->progress might be invalid, leading to a crash.

With this commit this is a address on the stack, which should fix this.
src/lib/evas/canvas/efl_canvas_object_animation.c