[poppler] poppler/FileSpec.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 7 21:56:22 UTC 2020


 poppler/FileSpec.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3d9dab78f7aacf3ad7e0946b3dc60101722df93e
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Oct 7 23:50:42 2020 +0200

    FileSpec::getEmbeddedFile: Check fileSpec is a dict before calling getDict
    
    Fixes #967

diff --git a/poppler/FileSpec.cc b/poppler/FileSpec.cc
index fd2c7eb0..53f9384c 100644
--- a/poppler/FileSpec.cc
+++ b/poppler/FileSpec.cc
@@ -7,7 +7,7 @@
 //
 // Copyright (C) 2008-2009 Carlos Garcia Campos <carlosgc at gnome.org>
 // Copyright (C) 2009 Kovid Goyal <kovid at kovidgoyal.net>
-// Copyright (C) 2012, 2017-2019 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2012, 2017-2020 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2012 Hib Eris <hib at hiberis.nl>
 // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info at kdab.com>. Work sponsored by the LiMux project of the city of Munich
 // Copyright (C) 2018 Adam Reichold <adam.reichold at t-online.de>
@@ -156,7 +156,7 @@ FileSpec::~FileSpec()
 
 EmbFile *FileSpec::getEmbeddedFile()
 {
-    if (!ok)
+    if (!ok || !fileSpec.isDict())
         return nullptr;
 
     if (embFile)


More information about the poppler mailing list