diff --git a/legacy/ecore/AUTHORS b/legacy/ecore/AUTHORS index e16e1e8fac..ff9f752f4c 100644 --- a/legacy/ecore/AUTHORS +++ b/legacy/ecore/AUTHORS @@ -54,3 +54,4 @@ Jérémy Zurcher Vikram Narayanan Seong-ho Cho (DarkCircle) Patryk Kaczmarek +Daniel Willmann diff --git a/legacy/ecore/ChangeLog b/legacy/ecore/ChangeLog index 4d7f47c6df..bc7a925222 100644 --- a/legacy/ecore/ChangeLog +++ b/legacy/ecore/ChangeLog @@ -970,3 +970,7 @@ * Fix ecore_imf buf in the ibus module where it may segv accessing a wrong context handle. + +2012-10-02 Daniel Willmann + + * Fix memory allocation size in ecore_thread_feedback() diff --git a/legacy/ecore/NEWS b/legacy/ecore/NEWS index 97bb9ff785..efd4455306 100644 --- a/legacy/ecore/NEWS +++ b/legacy/ecore/NEWS @@ -25,6 +25,7 @@ Fixes: * ecore_file_escape_name() escape taba nd newline right. * ecore_x_image_is_argb32_get() returns correctly given endianness. * ecore_imf ibus module potential segv fixed. + * ecore_thread_feedback() memory allocation and corruption fixed. Improvements: diff --git a/legacy/ecore/src/lib/ecore/ecore_thread.c b/legacy/ecore/src/lib/ecore/ecore_thread.c index 87688ed3f3..5c6880bcbf 100644 --- a/legacy/ecore/src/lib/ecore/ecore_thread.c +++ b/legacy/ecore/src/lib/ecore/ecore_thread.c @@ -1107,7 +1107,7 @@ ecore_thread_feedback(Ecore_Thread *thread, Ecore_Pthread_Message *msg; Ecore_Pthread_Notify *notify; - msg = malloc(sizeof (Ecore_Pthread_Message*)); + msg = malloc(sizeof (Ecore_Pthread_Message)); if (!msg) return EINA_FALSE; msg->data = data; msg->callback = EINA_FALSE;