zehortigoza pushed a commit to branch master.
commit 18b27878aa3b633c855f73b9b58bb44fa0e1103f
Author: José Roberto de Souza <[email protected]>
Date: Thu Jul 18 15:13:57 2013 -0300
edje: Fix size calculation of flags of signal callbacks
---
src/lib/edje/edje_signal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/edje/edje_signal.c b/src/lib/edje/edje_signal.c
index 1e61945..4988891 100644
--- a/src/lib/edje/edje_signal.c
+++ b/src/lib/edje/edje_signal.c
@@ -180,8 +180,8 @@ _edje_signal_callback_grow(Edje_Signal_Callback_Group *gp)
tmp->matches = realloc(tmp->matches, sizeof (Edje_Signal_Callback_Match) *
tmp->matches_count);
gp->custom_data = realloc(gp->custom_data, sizeof (void*) *
tmp->matches_count);
- c = ((tmp->matches_count >> 1) | (tmp->matches_count & 1));
- gp->flags = realloc(gp->flags, sizeof (Edje_Signal_Callback_Group) + c);
+ c = ((tmp->matches_count >> 1) + (tmp->matches_count & 1));
+ gp->flags = realloc(gp->flags, sizeof (Eina_Bool) * c);
// We have just expanded by one char, set it to 0
if (tmp->matches_count & 1) gp->flags[tmp->matches_count >> 1] = 0;
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk