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

noreply at xfce.org noreply at xfce.org
Sun May 17 11:38:11 CEST 2015


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

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

commit f2541ec3a528cdfdbaa33bf9b8fcc2048062c541
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