From 4579d4be14c0e4ec68acd43d1bbbc7451fef9399 Mon Sep 17 00:00:00 2001 From: Morgan Hardwood Date: Wed, 7 Feb 2018 14:51:12 +0100 Subject: [PATCH] Fixes memory leak in ExifManager::parse Fixes #4375 --- rtexif/rtexif.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtexif/rtexif.cc b/rtexif/rtexif.cc index 47d885e50..b6a60bbd8 100644 --- a/rtexif/rtexif.cc +++ b/rtexif/rtexif.cc @@ -3077,7 +3077,7 @@ void ExifManager::parse (bool isRaw, bool skipIgnored) root->printAll (); #endif - } while (ifdOffset && !onlyFirst); + } while (ifdOffset > 0 && !onlyFirst); // Security check : if there's at least one root, there must be at least one image. // If the following occurs, then image detection above has failed or it's an unsupported file type.