[Xfce4-commits] [xfce/xfdesktop] 01/01: Avoid invalid memory access (Bug #15299)

noreply at xfce.org noreply at xfce.org
Tue May 14 03:06:22 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       m   a   s   t   e   r   
   in repository xfce/xfdesktop.

commit c7c894fea51c8c2a7d2f776e7e313be59a5a0284
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 6623661..6474aa1 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -3601,6 +3601,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