Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_netwm.c 


Log Message:
Check that we get enough data for width and height.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ecore_x_netwm.c     24 Sep 2005 11:36:22 -0000      1.40
+++ ecore_x_netwm.c     24 Sep 2005 13:18:43 -0000      1.41
@@ -638,7 +638,12 @@
                                         XA_CARDINAL, 32, &data_ret, &num_ret))
      return 0;
    if (!data_ret) return 0;
-   
+   if (num_ret < 2)
+     {
+       free(data_ret);
+       return 0;
+     }
+
    data = (unsigned int *)data_ret;
 
    if (icon)




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to