[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix crash (Bug #11782)

noreply at xfce.org noreply at xfce.org
Sun Apr 5 13:53:45 CEST 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit 33f185a38f346243debc2608d8a71571e3b18231
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Thu Apr 2 11:17:24 2015 +0200

    Fix crash (Bug #11782)
    
    Bail out when a negative value was calculated for row/col.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-icon-view.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c
index 30914c4..8bc180d 100644
--- a/src/xfdesktop-icon-view.c
+++ b/src/xfdesktop-icon-view.c
@@ -4151,7 +4151,7 @@ xfdesktop_icon_view_widget_coords_to_item(XfdesktopIconView *icon_view,
     gint16 row, col;
     
     xfdesktop_xy_to_rowcol(icon_view, wx, wy, &row, &col);
-    if(row >= icon_view->priv->nrows
+    if(row < 0 || col < 0 || row >= icon_view->priv->nrows
        || col >= icon_view->priv->ncols)
     {
         return NULL;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list