poppler/FileSpec.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 3d9dab78f7aacf3ad7e0946b3dc60101722df93e Author: Albert Astals Cid <[email protected]> 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 <[email protected]> // Copyright (C) 2009 Kovid Goyal <[email protected]> -// Copyright (C) 2012, 2017-2019 Albert Astals Cid <[email protected]> +// Copyright (C) 2012, 2017-2020 Albert Astals Cid <[email protected]> // Copyright (C) 2012 Hib Eris <[email protected]> // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <[email protected]>. Work sponsored by the LiMux project of the city of Munich // Copyright (C) 2018 Adam Reichold <[email protected]> @@ -156,7 +156,7 @@ FileSpec::~FileSpec() EmbFile *FileSpec::getEmbeddedFile() { - if (!ok) + if (!ok || !fileSpec.isDict()) return nullptr; if (embFile) _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
