diff options
author | Andre Miranda <andreldm@xfce.org> | 2019-05-13 22:05:43 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2019-05-13 22:16:30 -0300 |
commit | 4ae6e0b9e3b2752d56a12f68a1e3f383bee830c8 (patch) | |
tree | ce05e4933e47ce325121689a1210b4f150b583a5 | |
parent | de120eaf1975d3d50f13cae203b89e014ec0c62d (diff) | |
download | xfdesktop-4ae6e0b9e3b2752d56a12f68a1e3f383bee830c8.tar.gz |
Avoid invalid memory access (Bug #15299)
-rw-r--r-- | src/xfdesktop-icon-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfdesktop-icon-view.c b/src/xfdesktop-icon-view.c index c598171b..e6dbc4b5 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); } |