devilhorns pushed a commit to branch master.

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

commit d3d909bf9e2d540ecb0e7303d4323b78d6bab10c
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Sun Apr 12 20:51:31 2015 -0400

    ector: Fix Coverity CID1293003
    
    Summary: This fixes an issue of coverity reporting Explicit null
    dereference as fetchfunc is defaulted to NULL, yet no check is made
    later before calling it.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ector/software/ector_software_rasterizer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ector/software/ector_software_rasterizer.c 
b/src/lib/ector/software/ector_software_rasterizer.c
index 71eaa1f..495e50f 100644
--- a/src/lib/ector/software/ector_software_rasterizer.c
+++ b/src/lib/ector/software/ector_software_rasterizer.c
@@ -80,7 +80,8 @@ _blend_gradient(int count, const SW_FT_Span *spans, void 
*user_data)
          while (length)
            {
               int l = MIN(length, buffer_size);
-              fetchfunc(buffer, data, spans->y, spans->x, l);
+              if (fetchfunc)
+                fetchfunc(buffer, data, spans->y, spans->x, l);
               if (data->mul_col == 0xffffffff)
                 _ector_comp_func_source_over(target, buffer, l, 
spans->coverage); // TODO use proper composition func
               else

-- 


Reply via email to