stefan pushed a commit to branch master.
commit 03c2d1c868ea6e492338b4b046dd375d570598f6
Author: Stefan Schmidt <[email protected]>
Date: Wed Aug 7 15:16:07 2013 +0100
ecore: Check if eina_inarray_grow return NULL.
We will dereference one line below.
CID 1039337
---
src/lib/ecore/ecore_coroutine.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib/ecore/ecore_coroutine.c b/src/lib/ecore/ecore_coroutine.c
index e224556..07a277a 100644
--- a/src/lib/ecore/ecore_coroutine.c
+++ b/src/lib/ecore/ecore_coroutine.c
@@ -329,6 +329,7 @@ ecore_coroutine_defer(Ecore_Coroutine *coro, Eina_Free_Cb
func, void *data)
Ecore_Coroutine_Defer *defer;
defer = eina_inarray_grow(&coro->defer, 1);
+ if (!defer) return;
defer->func = func;
defer->data = data;
}
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk