Check that we get enough data for width and height.
SVN revision: 16917
This commit is contained in:
parent
7c0400bfc8
commit
de083d7324
|
@ -638,7 +638,12 @@ ecore_x_netwm_icon_get(Ecore_X_Window win, int *width, int *height, unsigned int
|
||||||
XA_CARDINAL, 32, &data_ret, &num_ret))
|
XA_CARDINAL, 32, &data_ret, &num_ret))
|
||||||
return 0;
|
return 0;
|
||||||
if (!data_ret) return 0;
|
if (!data_ret) return 0;
|
||||||
|
if (num_ret < 2)
|
||||||
|
{
|
||||||
|
free(data_ret);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
data = (unsigned int *)data_ret;
|
data = (unsigned int *)data_ret;
|
||||||
|
|
||||||
if (icon)
|
if (icon)
|
||||||
|
|
Loading…
Reference in New Issue