ecore: Fix memory allocation size in ecore_thread_feedback()

Patch by Daniel Willmann <d.willmann@samsung.com>


SVN revision: 77340
This commit is contained in:
Cedric BAIL 2012-10-03 05:55:32 +00:00
parent 63e697d752
commit 94978e3079
4 changed files with 7 additions and 1 deletions

View File

@ -54,3 +54,4 @@ Jérémy Zurcher <jeremy@asynk.ch>
Vikram Narayanan <vikram186@gmail.com>
Seong-ho Cho (DarkCircle) <darkcircle.0426@gmail.com>
Patryk Kaczmarek <patryk.k@samsung.com>
Daniel Willmann <d.willmann@samsung.com>

View File

@ -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()

View File

@ -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:

View File

@ -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;