From ac1238e77402842dc10d1de45b923a14bfb74444 Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Mon, 22 Jan 2018 15:50:17 +0100 Subject: [PATCH] added hotfix for #3794 -- to be revised after 5.4 is out --- rtengine/rtthumbnail.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rtengine/rtthumbnail.cc b/rtengine/rtthumbnail.cc index 59d19cc15..1a8d18897 100644 --- a/rtengine/rtthumbnail.cc +++ b/rtengine/rtthumbnail.cc @@ -150,6 +150,11 @@ Thumbnail* Thumbnail::loadFromImage (const Glib::ustring& fname, int &w, int &h, ImageIO* img = imgSrc.getImageIO(); + // agriggio -- hotfix for #3794, to be revised once a proper solution is implemented + if (std::max(img->getWidth(), img->getHeight()) / std::min(img->getWidth(), img->getHeight()) >= 10) { + return nullptr; + } + Thumbnail* tpp = new Thumbnail (); unsigned char* data;