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:05:43 -0300 |
commit | c7c894fea51c8c2a7d2f776e7e313be59a5a0284 (patch) | |
tree | 604df2b5b561a610d58957e6e8bbb05f346bb03e /src/xfdesktop-icon-view.c | |
parent | 9446a81d1c53ec52facfe02384473028a3a3e0f9 (diff) | |
download | xfdesktop-c7c894fea51c8c2a7d2f776e7e313be59a5a0284.tar.gz |
Avoid invalid memory access (Bug #15299)
Diffstat (limited to 'src/xfdesktop-icon-view.c')
-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 66236613..6474aa12 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); } |