fix for using uninitialized stack memory in mesh_foreachScreenFace__mapFunc(), used...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 10 Oct 2011 06:56:28 +0000 (06:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 10 Oct 2011 06:56:28 +0000 (06:56 +0000)
source/blender/editors/space_view3d/drawobject.c

index b84998e6b83dd77aadc9ba7b126a395798500e18..df1c743b5cdbd9e63e86bf996ccc0c1a309b059b 100644 (file)
@@ -1775,7 +1775,9 @@ static void mesh_foreachScreenFace__mapFunc(void *userData, int index, float *ce
        if (efa && efa->h==0 && efa->fgonf!=EM_FGON) {
                view3d_project_short_clip(data->vc.ar, cent, s, 1);
 
-               data->func(data->userData, efa, s[0], s[1], index);
+               if (s[0] != IS_CLIPPED) {
+                       data->func(data->userData, efa, s[0], s[1], index);
+               }
        }
 }