[Xfce4-commits] [xfce/xfdesktop] 01/01: Avoid invalid memory access (Bug #15299)
noreply at xfce.org
noreply at xfce.org
Tue May 14 03:16:40 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 2
in repository xfce/xfdesktop.
commit 4ae6e0b9e3b2752d56a12f68a1e3f383bee830c8
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon May 13 22:05:43 2019 -0300
Avoid invalid memory access (Bug #15299)
---
src/xfdesktop-icon-view.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index c598171..e6dbc4b 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -3694,6 +3694,10 @@ xfdesktop_icon_view_icon_in_cell(XfdesktopIconView *icon_view,
&& col < icon_view->priv->ncols, NULL);
idx = col * icon_view->priv->nrows + row;
+
+ if (idx < 0)
+ return NULL;
+
return xfdesktop_icon_view_icon_in_cell_raw(icon_view, idx);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list