From 919a772f027ac9ac5e611b47a3dad44b611a443c Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Wed, 25 Mar 2015 14:05:12 +0100 Subject: [PATCH] Handle opening of invalid FrIDa file --- src/core/InformationManager.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/InformationManager.cxx b/src/core/InformationManager.cxx index 485aacd..b964982 100644 --- a/src/core/InformationManager.cxx +++ b/src/core/InformationManager.cxx @@ -50,7 +50,10 @@ void InformationManager::load(const std::string& filename) { QuaZipFile file(&zip); QuaZipFileInfo info; - zip.open(QuaZip::mdUnzip); + if (!zip.open(QuaZip::mdUnzip)) { + LOG4CXX_ERROR(logger, "Failed to open archive " << filename); + return; + } tmpfile.reset(new QTemporaryFile()); { -- 2.39.5