From 9ac459bf71eebcfb0aee52c89657eaf031c4e3d0 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 28 Nov 2020 13:32:57 +0100 Subject: [PATCH] Avoid endless loop and heap corruption of doom. --- src/gui/FileListWidget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/FileListWidget.cxx b/src/gui/FileListWidget.cxx index d2cff5261..613b05811 100644 --- a/src/gui/FileListWidget.cxx +++ b/src/gui/FileListWidget.cxx @@ -51,7 +51,7 @@ void FileListWidget::setDirectory(const FilesystemNode& node, // Initialize history FilesystemNode tmp = _node; - while(tmp.hasParent()) + while(tmp.hasParent() && !_history.full()) { string name = tmp.getName(); if(name.back() == '/' || name.back() == '\\')