devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=bb24aab001646f3a64ae197de6fb5af24a118eb5

commit bb24aab001646f3a64ae197de6fb5af24a118eb5
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Thu Mar 10 12:20:34 2016 -0500

    evas-gl: Fix dereference after null check
    
    Coverity reports that 'ctx' may be NULL here and we should check it
    before usage (as is done above).
    
    Coverity CID1339785
    
    @fix
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/modules/evas/engines/gl_common/evas_gl_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c 
b/src/modules/evas/engines/gl_common/evas_gl_core.c
index e5414b4..3ed4a1d 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -143,7 +143,7 @@ _internal_resource_make_current(void *eng_data, 
EVGL_Surface *sfc, EVGL_Context
           {
              // Do Nothing
           }
-        else if (ctx->pixmap_image_supported) // Pixmap surface
+        else if ((ctx) && (ctx->pixmap_image_supported)) // Pixmap surface
           {
              if (!sfc->indirect_sfc)
                {

-- 


Reply via email to